Dockerfile 968 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. FROM debian:stretch
  2. # Setup demo environment variables
  3. ENV HOME=/root \
  4. DEBIAN_FRONTEND=noninteractive \
  5. LANG=en_US.UTF-8 \
  6. LANGUAGE=en_US.UTF-8 \
  7. LC_ALL=C.UTF-8 \
  8. DISPLAY=:0.0 \
  9. DISPLAY_WIDTH=1024 \
  10. DISPLAY_HEIGHT=768
  11. # Install git, supervisor, VNC, & X11 packages
  12. RUN set -ex; \
  13. apt-get update; \
  14. apt-get install -y \
  15. bash \
  16. fluxbox \
  17. git \
  18. socat \
  19. supervisor \
  20. x11vnc \
  21. xterm \
  22. xvfb
  23. # Clone noVNC from github
  24. RUN set -ex; \
  25. git clone https://github.com/kanaka/noVNC.git /root/noVNC; \
  26. git clone https://github.com/kanaka/websockify /root/noVNC/utils/websockify; \
  27. rm -rf /root/noVNC/.git; \
  28. rm -rf /root/noVNC/utils/websockify/.git; \
  29. apt-get remove -y --purge git
  30. # Modify the launch script 'ps -p'
  31. RUN sed -i -- "s/ps -p/ps -o pid | grep/g" /root/noVNC/utils/launch.sh
  32. COPY . /app
  33. CMD ["/usr/bin/supervisord", "-c", "/app/supervisord.conf"]
  34. EXPOSE 8080