2016-04-14 01:36:03 +08:00
|
|
|
#
|
|
|
|
# Dockerfile for dnsmasq
|
|
|
|
#
|
|
|
|
|
2022-08-19 17:37:46 +08:00
|
|
|
FROM alpine:3
|
|
|
|
MAINTAINER EasyPi Software Foundation
|
2016-04-14 01:36:03 +08:00
|
|
|
|
|
|
|
RUN set -xe \
|
2020-11-14 05:37:47 +01:00
|
|
|
&& apk add --no-cache dnsmasq-dnssec \
|
2023-05-19 09:34:10 +08:00
|
|
|
&& echo "conf-dir=/etc/dnsmasq.d,*.conf" >> /etc/dnsmasq.conf \
|
|
|
|
&& dnsmasq --version
|
2016-04-14 01:36:03 +08:00
|
|
|
|
|
|
|
VOLUME /etc/dnsmasq.d
|
|
|
|
|
2016-07-12 13:43:54 +08:00
|
|
|
EXPOSE 53/tcp \
|
|
|
|
53/udp \
|
|
|
|
67/udp
|
2016-04-14 01:36:03 +08:00
|
|
|
|
2023-04-08 11:33:17 +08:00
|
|
|
ENTRYPOINT ["dnsmasq", "--keep-in-foreground", "--user=dnsmasq", "--group=dnsmasq"]
|