Dockerfile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. RUN set -x; \
  26. mkdir -p /usr/local/java && \
  27. cd /usr/local/java && \
  28. /root/jre-*.bin && \
  29. echo >>/etc/profile export JRE_HOME=`echo /usr/local/java/jre*` && \
  30. echo >>/etc/profile export 'PATH="$PATH:$JRE_HOME/bin"' && \
  31. update-alternatives --install /usr/bin/java java /usr/local/java/jre*/bin/java 1 && \
  32. update-alternatives --set java /usr/local/java/jre*/bin/java && \
  33. update-alternatives --install /usr/bin/javaws javaws /usr/local/java/jre*/bin/javaws 1 && \
  34. update-alternatives --set javaws /usr/local/java/jre*/bin/javaws && \
  35. rm -f /root/jre-*.bin
  36. COPY startup.sh handlers.json /root/
  37. COPY icewm.menu /root/.icewm/menu
  38. COPY ratpoisonrc /root/.ratpoisonrc
  39. CMD ["/root/startup.sh"]
  40. WORKDIR /root
  41. EXPOSE 5900