Dockerfile-build 556 B

123456789101112131415161718192021222324252627282930
  1. FROM ghcr.io/netbootxyz/docker-builder:latest as builder
  2. ENV DEBIAN_FRONTEND=noninteractive
  3. RUN \
  4. echo "**** install deps ****" && \
  5. apt-get update && \
  6. apt-get install -y \
  7. git \
  8. python3-pip \
  9. python3-setuptools \
  10. syslinux
  11. # repo for build
  12. COPY . /ansible
  13. RUN pip3 install ansible==2.10.0
  14. RUN \
  15. echo "**** running ansible ****" && \
  16. cd /ansible && \
  17. ansible-playbook -i inventory site.yml
  18. # runtime stage
  19. FROM alpine:3.12
  20. COPY --from=builder /var/www/html/ /mnt/
  21. COPY docker-build-root/ /
  22. ENTRYPOINT [ "/dumper.sh" ]