Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@hinzundcode
Created July 1, 2016 11:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hinzundcode/cbc2a81b2f9a36320f288b4aa46a0177 to your computer and use it in GitHub Desktop.
Save hinzundcode/cbc2a81b2f9a36320f288b4aa46a0177 to your computer and use it in GitHub Desktop.
firefox over docker and vnc
FROM ubuntu
RUN apt-get update && apt-get install -y x11vnc xvfb firefox
RUN mkdir ~/.vnc
RUN x11vnc -storepasswd 1234 ~/.vnc/passwd
RUN bash -c 'echo "firefox"' >> /.bashrc
EXPOSE 5900
CMD ["x11vnc", "-forever", "-usepw", "-create"]
# on osx: $ open vnc://docker:<port>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment