Initial commit for creating core dns image

This commit is contained in:
2023-01-26 06:27:17 +00:00
parent 7db856db57
commit 061591808d
6 changed files with 116 additions and 0 deletions

17
Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
FROM alpine:edge
RUN apk --no-cache add dnsmasq
EXPOSE 53/udp
EXPOSE 67/udp
EXPOSE 68/udp
RUN mkdir -p /etc/dnsmasq.d/config
COPY dns.conf /etc/dnsmasq.d/ && \
dhcp-conf /etc/dnsmasq.d/ && \
dhcp-reservations.conf /etc/dnsmasq.d/ && \
hosts.local /etc/dnsmasq.d/ && \
COPY entrypoint.sh /
ENTRYPOINT ["/entrypoint.sh"]