21 lines
411 B
Plaintext
21 lines
411 B
Plaintext
# Create a VM for testing Ansible provisioning.
|
|
|
|
FROM archlinux:base
|
|
|
|
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
|
|
|
|
RUN pacman -Sy --noconfirm $PACKAGES $EXTRA_ARCH
|
|
|
|
COPY bin/main.sh /root/main.sh
|
|
RUN chmod +x /root/main.sh
|
|
|
|
WORKDIR /root/
|
|
USER root
|
|
CMD ./main.sh
|