Dockerfile-build.production 569 B

1234567891011121314151617181920212223242526272829303132
  1. FROM ubuntu:bionic as builder
  2. RUN \
  3. echo "**** install deps ****" && \
  4. apt-get update && \
  5. apt-get install -y \
  6. ansible \
  7. apache2 \
  8. build-essential \
  9. dosfstools \
  10. genisoimage \
  11. git \
  12. liblzma-dev \
  13. python-minimal \
  14. python-yaml \
  15. syslinux
  16. # repo for build
  17. COPY . /ansible
  18. RUN \
  19. echo "**** running ansible ****" && \
  20. cd /ansible && \
  21. ansible-playbook -i inventory site.yml --extra-vars "@script/netbootxyz-overrides.yml"
  22. # runtime stage
  23. FROM alpine:3.10
  24. COPY --from=builder /var/www/html/ /mnt/
  25. COPY docker-build-root/ /
  26. ENTRYPOINT [ "/dumper.sh" ]