Dockerfile 1.3 KB

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