Skip to content

Instantly share code, notes, and snippets.

@yudhiwidyatama
Created October 30, 2016 09:56
Show Gist options
  • Save yudhiwidyatama/adc71a975dbf82ff9c37bd9aba69a960 to your computer and use it in GitHub Desktop.
Save yudhiwidyatama/adc71a975dbf82ff9c37bd9aba69a960 to your computer and use it in GitHub Desktop.
Dockerfile for VNC Server running XFCE Desktop on Debian Jessie, version 2
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
@Anas-jaf
Copy link

Anas-jaf commented Aug 7, 2022

i ran in permission error can't remove /tmp permission denied

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment