mirror of
https://github.com/netbootxyz/netboot.xyz.git
synced 2026-01-23 02:34:26 +00:00
32 lines
521 B
Text
32 lines
521 B
Text
FROM ubuntu:bionic as builder
|
|
|
|
RUN \
|
|
echo "**** install deps ****" && \
|
|
apt-get update && \
|
|
apt-get install -y \
|
|
ansible \
|
|
apache2 \
|
|
build-essential \
|
|
dosfstools \
|
|
genisoimage \
|
|
git \
|
|
liblzma-dev \
|
|
python-minimal \
|
|
python-yaml \
|
|
syslinux
|
|
|
|
# repo for build
|
|
COPY . /ansible
|
|
|
|
RUN \
|
|
echo "**** running ansible ****" && \
|
|
cd /ansible && \
|
|
ansible-playbook -i inventory site.yml
|
|
|
|
# runtime stage
|
|
FROM alpine:3.10
|
|
|
|
COPY --from=builder /var/www/html/ /mnt/
|
|
COPY docker-build-root/ /
|
|
|
|
ENTRYPOINT [ "/dumper.sh" ]
|