| ARG RELEASE |
| ARG LAUNCHPAD_BUILD_ARCH |
| LABEL org.opencontainers.image.version=24.04 |
| ADD file:08e1f650999ca51d9b63c782d658d9485c64263966d69dc423a3b64a16449f00 in / |
| CMD ["/bin/bash"] |
| ENV DEBIAN_FRONTEND=noninteractive |
| RUN /bin/sh -c sed -i 's/^Types: deb$/Types: deb deb-src/' /etc/apt/sources.list.d/ubuntu.sources # buildkit |
| RUN /bin/sh -c apt update && apt install -y software-properties-common ca-certificates && add-apt-repository -y ppa:mozillateam/ppa # buildkit |
| RUN /bin/sh -c echo 'Package: firefox*\nPin: release o=LP-PPA-mozillateam\nPin-Priority: 1001\n\nPackage: thunderbird*\nPin: release o=LP-PPA-mozillateam\nPin-Priority: 1001' > /etc/apt/preferences.d/mozilla # buildkit |
| RUN /bin/sh -c apt update && apt install -y xrdp sssd sssd-tools libpam-sss libnss-sss ldap-utils ca-certificates dbus-x11 xfce4 xfce4-terminal sudo firefox firefox-locale-de thunderbird thunderbird-locale-de locales language-pack-de nextcloud-desktop && rm -rf /var/lib/apt/lists/* # buildkit |
| RUN /bin/sh -c apt-get update && apt-get install -y pulseaudio build-essential dpkg-dev git libpulse-dev meson ninja-build pkg-config autoconf libtool && apt-get build-dep -y pulseaudio && cd /tmp && apt-get source pulseaudio && PULSE_DIR=$(find /tmp -maxdepth 1 -type d -name "pulseaudio-*" | head -n 1) && cd $PULSE_DIR && meson setup build && cd /tmp && git clone https://github.com/neutrinolabs/pulseaudio-module-xrdp.git && cd pulseaudio-module-xrdp && ./bootstrap && ./configure PULSE_DIR=$PULSE_DIR && make && make install && cd / && rm -rf /tmp/pulseaudio-* /tmp/pulseaudio-module-xrdp && apt-get remove -y build-essential dpkg-dev meson ninja-build autoconf libtool && apt-get autoremove -y # buildkit |
| RUN /bin/sh -c sed -i 's/^# de_DE.UTF-8 UTF-8/de_DE.UTF-8 UTF-8/' /etc/locale.gen && locale-gen && update-locale LANG=de_DE.UTF-8 LANGUAGE=de_DE:de LC_ALL=de_DE.UTF-8 # buildkit |
| RUN /bin/sh -c echo "LANG=de_DE.UTF-8" > /etc/default/locale && echo "LANGUAGE=de_DE:de" >> /etc/default/locale && echo "LC_ALL=de_DE.UTF-8" >> /etc/default/locale # buildkit |
| ENV LANG=de_DE.UTF-8 |
| ENV LANGUAGE=de_DE:de |
| ENV LC_ALL=de_DE.UTF-8 |
| RUN /bin/sh -c apt update && apt install -y tzdata && ln -fs /usr/share/zoneinfo/Europe/Berlin /etc/localtime && dpkg-reconfigure -f noninteractive tzdata && rm -rf /var/lib/apt/lists/* # buildkit |
| RUN /bin/sh -c apt update && apt install -y keyboard-configuration x11-xkb-utils && rm -rf /var/lib/apt/lists/* # buildkit |
| RUN /bin/sh -c cat > /etc/default/keyboard <<'EOF'
XKBMODEL="pc105"
XKBLAYOUT="de"
XKBVARIANT=""
XKBOPTIONS=""
BACKSPACE="guess"
EOF # buildkit |
| RUN /bin/sh -c dpkg-reconfigure -f noninteractive keyboard-configuration # buildkit |
| COPY config/pam/ /etc/pam.d/ # buildkit |
| COPY config/nsswitch.conf /etc/nsswitch.conf # buildkit |
| COPY config/xrdp/ /etc/xrdp/ # buildkit |
| COPY config/ldap/ /etc/ldap/ # buildkit |
| COPY config/skel/ /etc/skel/ # buildkit |
| COPY config/sudoers /etc/sudoers # buildkit |
| RUN /bin/sh -c chmod 440 /etc/sudoers # buildkit |
| RUN /bin/sh -c mkdir -p /etc/sssd && chown root:root /etc/sssd && chmod 755 /etc/sssd # buildkit |
| RUN /bin/sh -c mkdir -p /home && chmod 755 /home # buildkit |
| RUN /bin/sh -c chown xrdp:xrdp /etc/xrdp/key.pem /etc/xrdp/cert.pem /etc/xrdp/rsakeys.ini && chmod 600 /etc/xrdp/key.pem /etc/xrdp/rsakeys.ini && chmod 644 /etc/xrdp/cert.pem # buildkit |
| RUN /bin/sh -c echo "LANG=de_DE.UTF-8" >> /etc/environment && echo "LANGUAGE=de_DE:de" >> /etc/environment && echo "LC_ALL=de_DE.UTF-8" >> /etc/environment # buildkit |
| RUN /bin/sh -c sed -i '1i export LANG=de_DE.UTF-8\nexport LANGUAGE=de_DE:de\nexport LC_ALL=de_DE.UTF-8' /etc/xrdp/startwm.sh && chmod +x /etc/xrdp/startwm.sh # buildkit |
| RUN /bin/sh -c mkdir -p /etc/xdg/xfce4 && echo "setxkbmap de" >> /etc/xdg/xfce4/xinitrc # buildkit |
| EXPOSE [3389/tcp] |
| COPY entrypoint.sh /entrypoint.sh # buildkit |
| RUN /bin/sh -c chmod +x /entrypoint.sh # buildkit |
| CMD ["/entrypoint.sh"] |