Skip to content

Instantly share code, notes, and snippets.

@Anas-jaf
Forked from yudhiwidyatama/Dockerfile
Created August 7, 2022 21:07
Show Gist options
  • Save Anas-jaf/a91b4b5fa7443abfad2f651136a75b99 to your computer and use it in GitHub Desktop.
Save Anas-jaf/a91b4b5fa7443abfad2f651136a75b99 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment