forked from Mirrors/dhcp-netboot.xyz
Adds a service startup file for dnsmasq to run when the container starts. Also adds an environment variable to allow DHCP range to be overridden.
12 lines
344 B
Docker
12 lines
344 B
Docker
FROM linuxserver/netbootxyz:latest
|
|
|
|
# Install dnsmasq to play DHCP server
|
|
RUN apk add --update dnsmasq
|
|
|
|
# Copy config files for dnsmasq, and running as a service
|
|
COPY etc /etc/
|
|
|
|
# Set the start of the IP range to reply to PXE DHCP requests on
|
|
ENV DHCP_RANGE_START=192.168.0.1
|
|
|
|
# dnsmasq will be started as a system service by the s6 supervisor
|