21 lines
419 B
Plaintext
21 lines
419 B
Plaintext
# Create a VM for testing Ansible provisioning.
|
|
|
|
FROM archlinux:base-devel
|
|
|
|
ARG PACKAGES
|
|
ENV PACKAGES="$PACKAGES"
|
|
ARG EXTRA_ARCH
|
|
ENV EXTRA_ARCH="$EXTRA_ARCH"
|
|
|
|
# Arch is rolling, and therefore recommends updating the container immediately.
|
|
RUN pacman -Syyu --noconfirm
|
|
|
|
RUN pacman -Syy --noconfirm $PACKAGES $EXTRA_ARCH
|
|
|
|
COPY bin/main.sh /root/main.sh
|
|
RUN chmod +x /root/main.sh
|
|
|
|
WORKDIR /root/
|
|
USER root
|
|
CMD ./main.sh
|