Dockerfile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # At some point maybe add variables to control size of screen.
  2. FROM ubuntu:bionic
  3. RUN apt-get --yes update && apt-get --yes install --no-install-recommends \
  4. bzip2 \
  5. fonts-droid-fallback \
  6. fonts-noto \
  7. libasound2 \
  8. libdbus-glib-1-2 \
  9. libgtk-3-0 \
  10. ratpoison \
  11. tightvncserver \
  12. xfonts-base \
  13. x11-xserver-utils \
  14. xterm
  15. COPY startup.sh ratpoisonrc waterfox*.tar.bz2 jre-*.tar.gz /
  16. RUN set -x; \
  17. mkdir -p /usr/local/java && \
  18. tar -C /usr/local -xf /waterfox*.tar.bz2 && \
  19. rm -f /waterfox*.tar.bz2 && \
  20. tar -C /usr/local/java -xf /jre-*.tar.gz && \
  21. rm -f /jre-*.tar.gz && \
  22. echo >>/etc/profile export JRE_HOME=`echo /usr/local/java/jre*` && \
  23. echo >>/etc/profile export 'PATH="$PATH:$JRE_HOME/bin"' && \
  24. update-alternatives --install /usr/bin/java java /usr/local/java/jre*/bin/java 1 && \
  25. update-alternatives --set java /usr/local/java/jre*/bin/java && \
  26. update-alternatives --install /usr/bin/javaws javaws /usr/local/java/jre*/bin/javaws 1 && \
  27. update-alternatives --set javaws /usr/local/java/jre*/bin/javaws && \
  28. ln -s /usr/local/waterfox/waterfox /usr/local/bin
  29. CMD ["/startup.sh"]
  30. EXPOSE 5900