Files
boco/example/archlinux/Containerfile
T
hulthe ec05936d2f
CI / build (push) Successful in 10s
Add Arch Linux example
2026-08-29 21:04:35 +02:00

24 lines
632 B
Docker

# FROM archlinux:latest
FROM marvin
USER root
# Update, install kernel, initramfs tools, and utilities
# 'linux' includes mkinitcpio hooks that auto-generate the initramfs
RUN pacman -Syu --noconfirm linux busybox util-linux dhcpcd; \
pacman -Sc --noconfirm
# Copy kernel and initramfs to root for VM extraction
RUN cp /boot/vmlinuz-linux /vmlinuz && \
cp /boot/initramfs-linux.img /initrd.img
# Allow root login without password
RUN passwd -d root
# Set up timezone. Required to bypass archlinux's first-install setup.
RUN ln -s /usr/share/zoneinfo/Europe/Stockholm /etc/localtime
COPY init /init
RUN chmod +x /init