FROM public.ecr.aws/lts/ubuntu:20.04 #FROM debian:bullseye ENV DEBIAN_FRONTEND noninteractive RUN adduser --disabled-password --gecos "Xpra User" --uid 1000 user RUN apt-get update && \ apt-get -y install gnupg2 wget && \ wget -q https://xpra.org/gpg.asc -O- | apt-key add - && \ wget https://xpra.org/repos/focal/xpra.list -O /etc/apt/sources.list.d/xpra.list && \ apt-get update && apt-get -y install xpra xpra-html5 xvfb && \ apt-get clean && rm -rf /var/lib/apt/lists/* # Add x11 apps here RUN apt-get update && \ apt-get -y install thunderbird net-tools && \ apt-get clean && rm -rf /var/lib/apt/lists/* USER user ENV DISPLAY=:100 VOLUME /home/user WORKDIR /home/user CMD xpra start --bind-tcp=0.0.0.0:1300 --html=on --start-child=thunderbird --exit-with-children --daemon=no --xvfb="/usr/bin/Xvfb +extension Composite -screen 0 1366x768x24+32 -nolisten tcp -noreset" --pulseaudio=no --notifications=no --bell=no