Dockerfile 997 B

1234567891011121314151617181920212223242526272829303132
  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. libdbus-glib-1-2 \
  8. libgtk-3-0 \
  9. ratpoison \
  10. tightvncserver \
  11. xfonts-base \
  12. x11-xserver-utils \
  13. xterm
  14. COPY startup.sh ratpoisonrc waterfox*.tar.bz2 jre-*.tar.gz /
  15. RUN set -x; \
  16. tar -C /usr/local -xf /waterfox*.tar.bz2 && \
  17. rm -f /waterfox*.tar.bz2 && \
  18. ln -s /usr/local/waterfox/waterfox /usr/local/bin && \
  19. mkdir -p /usr/local/java && \
  20. tar -C /usr/local/java -xf /jre-*.tar.gz && \
  21. echo >>/etc/profile JRE_HOME=`echo /usr/local/java/jre*` && \
  22. echo >>/etc/profile 'PATH="$PATH:$JRE_HOME/bin"' && \
  23. update-alternatives --install /usr/bin/java java /usr/local/java/jre*/bin/java 1 && \
  24. update-alternatives --set java /usr/bin/java java /usr/local/java/jre*/bin/java
  25. CMD ["/startup.sh"]
  26. EXPOSE 5900