Files
netboot.xyz/Dockerfile-build
T
2019-11-10 12:19:57 -08:00

32 lines
511 B
Plaintext

FROM ubuntu:bionic as builder
RUN \
echo "**** install deps ****" && \
apt-get update && \
apt-get install -y \
ansible \
apache2 \
build-essential \
genisoimage \
git \
liblzma-dev \
python-minimal \
python-yaml \
syslinux
# repo for build
COPY . /ansible
RUN \
echo "**** running ansible ****" && \
cd /ansible && \
ansible-playbook -i inventory/all netbootxyz.yml
# runtime stage
FROM alpine:3.10
COPY --from=builder /var/www/html/ /mnt/
COPY docker-root/ /
ENTRYPOINT [ "/dumper.sh" ]