Dockerfile 1.4 KB

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