Change to use base-devel tag on Arch and also update the system since it is a rolling distro.

This commit is contained in:
2025-10-22 21:35:33 -07:00
parent e5c68aa12e
commit 978a9778a5

View File

@@ -1,16 +1,16 @@
# Create a VM for testing Ansible provisioning.
FROM archlinux:base
FROM archlinux:base-devel
ARG PACKAGES
ENV PACKAGES="$PACKAGES"
ARG EXTRA_ARCH
ENV EXTRA_ARCH="$EXTRA_ARCH"
# Use the image as it comes, do not upgrade it, so that it stays reproducible.
#RUN pacman -Syu --noconfirm
# Arch is rolling, and therefore recommends updating the container immediately.
RUN pacman -Syyu --noconfirm
RUN pacman -Sy --noconfirm $PACKAGES $EXTRA_ARCH
RUN pacman -Syy --noconfirm $PACKAGES $EXTRA_ARCH
COPY bin/main.sh /root/main.sh
RUN chmod +x /root/main.sh