Dockerfile-build 511 B

12345678910111213141516171819202122232425262728293031
  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. genisoimage \
  10. git \
  11. liblzma-dev \
  12. python-minimal \
  13. python-yaml \
  14. syslinux
  15. # repo for build
  16. COPY . /ansible
  17. RUN \
  18. echo "**** running ansible ****" && \
  19. cd /ansible && \
  20. ansible-playbook -i inventory/all netbootxyz.yml
  21. # runtime stage
  22. FROM alpine:3.10
  23. COPY --from=builder /var/www/html/ /mnt/
  24. COPY docker-root/ /
  25. ENTRYPOINT [ "/dumper.sh" ]