1
0

Dockerfile 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. echo 'LANG="en_US.UTF-8"' > /etc/default/locale && \
  27. chsh -s /bin/bash && \
  28. echo "root:root" | chpasswd && \
  29. mkdir -p /etc/systemd/system/serial-getty@ttyS0.service.d/ && \
  30. systemctl enable serial-getty@ttyS0.service && \
  31. rm /lib/systemd/system/getty.target.wants/getty-static.service && \
  32. rm /etc/motd /etc/issue && \
  33. systemctl disable systemd-timesyncd.service && \
  34. systemctl disable apt-daily.timer && \
  35. systemctl disable apt-daily-upgrade.timer && \
  36. systemctl disable dhcpcd.service && \
  37. echo "tmpfs /tmp tmpfs nodev,nosuid 0 0" >> /etc/fstab && \
  38. cd /root/ && \
  39. wget http://www.math.utah.edu/~mayer/linux/nbench-byte-2.2.3.tar.gz && \
  40. tar xfv nbench-byte-2.2.3.tar.gz && \
  41. rm nbench-byte-2.2.3.tar.gz && \
  42. mv nbench-byte-2.2.3 bench && \
  43. cd bench && \
  44. make
  45. COPY getty-noclear.conf getty-override.conf /etc/systemd/system/getty@tty1.service.d/
  46. COPY getty-autologin-serial.conf /etc/systemd/system/serial-getty@ttyS0.service.d/
  47. COPY logind.conf /etc/systemd/logind.conf
  48. #COPY xinitrc /root/.xinitrc
  49. COPY xorg.conf /etc/X11/
  50. COPY networking.sh /root/
  51. COPY boot-9p /etc/initramfs-tools/scripts/boot-9p
  52. # this needs to be commented out in order to boot from hdd
  53. RUN printf '%s\n' 9p 9pnet 9pnet_virtio virtio virtio_ring virtio_pci | tee -a /etc/initramfs-tools/modules && \
  54. echo 'BOOT=boot-9p' | tee -a /etc/initramfs-tools/initramfs.conf && \
  55. update-initramfs -u
  56. RUN apt-get --yes clean && \
  57. rm -r /var/lib/apt/lists/* && \
  58. rm -r /usr/share/doc/* && \
  59. rm -r /usr/share/man/* && \
  60. rm -r /usr/share/locale/?? && \
  61. rm /var/log/*.log /var/log/lastlog /var/log/wtmp /var/log/apt/*.log /var/log/apt/*.xz