Dockerfile 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. FROM i386/debian:buster
  2. ENV DEBIAN_FRONTEND noninteractive
  3. RUN apt update && \
  4. apt --yes --no-install-recommends install \
  5. linux-image-686 grub2 systemd \
  6. libterm-readline-perl-perl \
  7. gcc make libc6-dev \
  8. unzip bzip2 xz-utils \
  9. fluxbox \
  10. xserver-xorg-input-kbd xserver-xorg-input-mouse xserver-xorg-input-evdev \
  11. xserver-xorg-video-fbdev xserver-xorg-video-vesa \
  12. xserver-xorg x11-xserver-utils xinit dbus-x11 \
  13. libgdk-pixbuf2.0 libpango-1.0 libpangocairo-1.0 libgtk2.0-bin \
  14. libc-l10n locales \
  15. fonts-noto fonts-droid-fallback \
  16. strace file xterm vim apt-file \
  17. dhcpcd5 \
  18. wget curl \
  19. net-tools netcat \
  20. wmctrl xdotool \
  21. mesa-utils libgl1-mesa-dri \
  22. && \
  23. touch /root/.Xdefaults && \
  24. echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen \
  25. locale-gen \
  26. chsh -s /bin/bash && \
  27. echo "root:root" | chpasswd && \
  28. mkdir -p /etc/systemd/system/serial-getty@ttyS0.service.d/ && \
  29. systemctl enable serial-getty@ttyS0.service && \
  30. rm /lib/systemd/system/getty.target.wants/getty-static.service && \
  31. rm /etc/motd /etc/issue && \
  32. systemctl disable systemd-timesyncd.service && \
  33. systemctl disable apt-daily.timer && \
  34. systemctl disable apt-daily-upgrade.timer && \
  35. systemctl disable dhcpcd.service && \
  36. echo "tmpfs /tmp tmpfs nodev,nosuid 0 0" >> /etc/fstab && \
  37. cd /root/ && \
  38. wget http://www.math.utah.edu/~mayer/linux/nbench-byte-2.2.3.tar.gz && \
  39. tar xfv nbench-byte-2.2.3.tar.gz && \
  40. rm nbench-byte-2.2.3.tar.gz && \
  41. mv nbench-byte-2.2.3 bench && \
  42. cd bench && \
  43. make
  44. COPY getty-noclear.conf getty-override.conf /etc/systemd/system/getty@tty1.service.d/
  45. COPY getty-autologin-serial.conf /etc/systemd/system/serial-getty@ttyS0.service.d/
  46. COPY logind.conf /etc/systemd/logind.conf
  47. #COPY xinitrc /root/.xinitrc
  48. COPY xorg.conf /etc/X11/
  49. COPY networking.sh /root/
  50. COPY boot-9p /etc/initramfs-tools/scripts/boot-9p
  51. # this needs to be commented out in order to boot from hdd
  52. RUN printf '%s\n' 9p 9pnet 9pnet_virtio virtio virtio_ring virtio_pci | tee -a /etc/initramfs-tools/modules && \
  53. echo 'BOOT=boot-9p' | tee -a /etc/initramfs-tools/initramfs.conf && \
  54. update-initramfs -u
  55. RUN apt-get --yes clean && \
  56. rm -r /var/lib/apt/lists/* && \
  57. rm -r /usr/share/doc/* && \
  58. rm -r /usr/share/man/* && \
  59. rm -r /usr/share/locale/?? && \
  60. rm /var/log/*.log /var/log/lastlog /var/log/wtmp /var/log/apt/*.log /var/log/apt/*.xz