Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2017
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. FROM ubuntu:16.04
  2. MAINTAINER linktohack@gmail.com
  3. RUN apt-get update && \
  4. apt-get install -y x11vnc xvfb dwm firefox && \
  5. rm -rf /var/lib/apt/lists/*
  6. RUN mkdir ~/.vnc && \
  7. x11vnc -storepasswd 1234 ~/.vnc/passwd && \
  8. bash -c 'echo "#!/bin/bash" > /entrypoint.sh' && \
  9. bash -c 'echo "Xvfb :0 -screen 0 1024x768x16 &" >> /entrypoint.sh' && \
  10. bash -c 'echo "sleep 1" >> /entrypoint.sh' && \
  11. bash -c 'echo "export DISPLAY=:0" >> /entrypoint.sh' && \
  12. bash -c 'echo "x11vnc -forever -usepw &" >> /entrypoint.sh' && \
  13. bash -c 'echo "dwm &" >> /entrypoint.sh' && \
  14. bash -c 'echo "firefox" >> /entrypoint.sh' && \
  15. chmod +x /entrypoint.sh
  16. CMD ["/entrypoint.sh"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement