Files
Phoenix/docker/gui/ubuntu-18.04/Dockerfile
2020-07-14 11:38:32 -07:00

30 lines
813 B
Docker

FROM wxpython4/build:ubuntu-18.04
USER root:root
RUN apt-get install -y \
libx11-6 libxcb1 libxau6 xterm \
tightvncserver \
xvfb dbus-x11 x11-utils \
xfonts-base xfonts-75dpi xfonts-100dpi \
# Choose one of these:
# lxde
lubuntu-desktop
# ubuntu-mate-desktop
RUN apt-get remove -y "*screensaver*"
RUN apt-get clean
USER ${USER}:${USER}
RUN touch ~/.Xauthority; \
mkdir ~/.vnc; \
echo "password" | vncpasswd -f >> ~/.vnc/passwd; \
chmod 600 ~/.vnc/passwd; \
# And a corresponding one of these:
# echo "exec /usr/bin/startlxde" > ~/.vnc/xstartup;
echo "exec lxsession -e LXDE -s Lubuntu" > ~/.vnc/xstartup;
# echo "exec mate-session" > ~/.vnc/xstartup;
RUN chmod +x ~/.vnc/xstartup;
CMD ["start-vncserver.sh"]