Dockerfile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # At some point maybe add variables to control size of screen.
  2. FROM debian:buster
  3. COPY waterfox*.tar.bz2 jre-*.tar.gz /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. mkdir -p /usr/local/java && \
  23. tar -C /usr/local -xf /root/waterfox*.tar.bz2 && \
  24. rm -f /root/waterfox*.tar.bz2 && \
  25. tar -C /usr/local/java -xf /root/jre-*.tar.gz && \
  26. rm -f /root/jre-*.tar.gz && \
  27. echo >>/etc/profile export JRE_HOME=`echo /usr/local/java/jre*` && \
  28. echo >>/etc/profile export 'PATH="$PATH:$JRE_HOME/bin"' && \
  29. update-alternatives --install /usr/bin/java java /usr/local/java/jre*/bin/java 1 && \
  30. update-alternatives --set java /usr/local/java/jre*/bin/java && \
  31. update-alternatives --install /usr/bin/javaws javaws /usr/local/java/jre*/bin/javaws 1 && \
  32. update-alternatives --set javaws /usr/local/java/jre*/bin/javaws && \
  33. ln -s /usr/local/waterfox/waterfox /usr/local/bin
  34. COPY startup.sh handlers.json /root/
  35. COPY icewm.menu /root/.icewm/menu
  36. COPY ratpoisonrc /root/.ratpoisonrc
  37. CMD ["/root/startup.sh"]
  38. WORKDIR /root
  39. EXPOSE 5900