# Create a VM for testing Ansible provisioning. FROM debian:latest ARG PACKAGES ENV PACKAGES="$PACKAGES" ARG EXTRA_DEBIAN ENV EXTRA_DEBIAN="$EXTRA_DEBIAN" # Use the image as it comes, do not upgrade it, so that it stays reproducible. #RUN apt update && apt dist-upgrade -y RUN apt update && apt install -y $PACKAGES $EXTRA_DEBIAN COPY bin/main.sh /root/main.sh RUN chmod +x /root/main.sh WORKDIR /root/ USER root CMD ./main.sh