Dockerfile 1.6 KB

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