ARG RELEASE |
ARG LAUNCHPAD_BUILD_ARCH |
LABEL org.opencontainers.image.ref.name=ubuntu |
LABEL org.opencontainers.image.version=20.04 |
ADD file:6a209aa51ba684c0a39769619c42058ca99311b87563c7b079319a8bb91bec1f in / |
CMD ["/bin/bash"] |
ENV DEBIAN_FRONTEND=noninteractive |
RUN /bin/sh -c apt update && apt install -y xfce4 xfce4-goodies xrdp chromium-browser sudo passwd && echo "net.ipv6.conf.all.disable_ipv6 = 1" >> /etc/sysctl.conf && echo "net.ipv6.conf.default.disable_ipv6 = 1" >> /etc/sysctl.conf && echo "net.ipv6.conf.lo.disable_ipv6 = 1" >> /etc/sysctl.conf && sysctl -p # buildkit |
RUN /bin/sh -c useradd -m -s /bin/bash gabriel && echo 'gabriel:1234' | chpasswd && usermod -aG ssl-cert gabriel # buildkit |
RUN /bin/sh -c echo "xfce4-session" > /home/gabriel/.xsession && chown gabriel:gabriel /home/gabriel/.xsession # buildkit |
RUN /bin/sh -c sed -i 's|^\. /etc/X11/xinit/Xsession|# &|' /etc/xrdp/startwm.sh && echo "startxfce4" >> /etc/xrdp/startwm.sh # buildkit |
EXPOSE map[3389/tcp:{}] |
CMD ["/usr/sbin/xrdp" "--nodaemon"] |