Created
October 30, 2016 09:56
-
-
Save yudhiwidyatama/adc71a975dbf82ff9c37bd9aba69a960 to your computer and use it in GitHub Desktop.
Dockerfile for VNC Server running XFCE Desktop on Debian Jessie, version 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:jessie | |
RUN apt-get update && apt-get install --no-install-recommends -y keyboard-configuration \ | |
&& rm -rf /var/lib/apt/lists/* | |
RUN apt-get update && apt-get install --no-install-recommends -y gnome-icon-theme tightvncserver xorg xserver-xorg \ | |
xserver-xorg-video-dummy \ | |
&& rm -rf /var/lib/apt/lists/* | |
RUN apt-get update && apt-get install --no-install-recommends -y xfce4 xfce4-goodies iceweasel \ | |
&& rm -rf /var/lib/apt/lists/* | |
RUN groupadd vuser && useradd -m -g vuser vuser | |
USER vuser | |
RUN mkdir ~/.vnc && echo thepassword | vncpasswd -f > ~/.vnc/passwd | |
RUN chmod 0600 ~/.vnc/passwd | |
#ENV USER vuser | |
WORKDIR /home/vuser | |
CMD USER=vuser && export USER && rm -rf /tmp && vncserver :3 && DISPLAY=localhost:3 && export DISPLAY && xterm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i ran in permission error
can't remove /tmp permission denied