server/Dockerfile-deploy

24 lines
576 B
Plaintext
Raw Normal View History

FROM alpine:3.20
2023-07-25 04:42:42 +00:00
EXPOSE 67/udp
EXPOSE 69/udp
EXPOSE 80/tcp
ENTRYPOINT ["/usr/sbin/initial-config.sh"]
2023-07-25 04:42:42 +00:00
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]
2023-10-23 16:27:00 +00:00
WORKDIR /srv/s
2023-07-25 04:42:42 +00:00
RUN apk add --no-cache \
busybox-extras \
supervisor \
syslinux \
tftp-hpa
2023-10-23 12:53:56 +00:00
RUN touch /var/lib/udhcpd/udhcpd.leases && \
2023-10-23 16:27:00 +00:00
mv /usr/share/syslinux/* /srv
2023-07-25 04:42:42 +00:00
COPY configs/deploy-initial-config.sh /usr/sbin/initial-config.sh
2023-07-25 04:42:42 +00:00
COPY configs/deploy-supervisord.conf /etc/supervisord.conf
COPY configs/udhcpd-sample.conf /etc/udhcpd.conf
2023-10-23 16:27:00 +00:00
COPY configs/pxelinux.cfg /srv/pxelinux.cfg/default