123456789101112131415161718192021222324252627282930 |
- FROM ghcr.io/netbootxyz/docker-builder:latest as builder
- ENV DEBIAN_FRONTEND=noninteractive
- RUN \
- echo "**** install deps ****" && \
- apt-get update && \
- apt-get install -y \
- git \
- python3-pip \
- python3-setuptools \
- syslinux
- # repo for build
- COPY . /ansible
- RUN pip3 install ansible==2.10.0
- RUN \
- echo "**** running ansible ****" && \
- cd /ansible && \
- ansible-playbook -i inventory site.yml
- # runtime stage
- FROM alpine:3.12
- COPY --from=builder /var/www/html/ /mnt/
- COPY docker-build-root/ /
- ENTRYPOINT [ "/dumper.sh" ]
|