Dockerfile 756 B

1234567891011121314151617181920212223242526272829303132
  1. FROM ubuntu:bionic
  2. # Install git, supervisor, VNC, & X11 packages
  3. RUN set -ex; \
  4. export DEBIAN_FRONTEND=noninteractive; \
  5. apt-get update; \
  6. apt-get install -y \
  7. xfce4 vnc4server xfce4-terminal supervisor novnc
  8. # Setup demo environment variables
  9. ENV HOME=/root \
  10. DEBIAN_FRONTEND=noninteractive \
  11. LANG=en_US.UTF-8 \
  12. LANGUAGE=en_US.UTF-8 \
  13. LC_ALL=C.UTF-8 \
  14. DISPLAY=:0.0 \
  15. DISPLAY_WIDTH=1024 \
  16. DISPLAY_HEIGHT=768
  17. RUN apt-get install -y \
  18. language-pack-zh-hans \
  19. fonts-droid-fallback \
  20. ttf-wqy-zenhei \
  21. ttf-wqy-microhei \
  22. fonts-arphic-ukai \
  23. fonts-arphic-uming
  24. COPY . /app
  25. COPY xstartup /root/.vnc/xstartup
  26. COPY passwd /root/.vnc/passwd
  27. CMD ["/app/entrypoint.sh"]
  28. EXPOSE 8080
  29. EXPOSE 5900