1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-08-10 22:31:28 +02:00

update dnsmasq

This commit is contained in:
kev
2016-07-12 13:43:54 +08:00
parent 4f7c39b30c
commit bb843eece8
6 changed files with 49 additions and 7 deletions

View File

@@ -3,16 +3,17 @@
#
FROM alpine
MAINTAINER kev <norelply@easypi.info>
RUN set -xe \
&& apk add -U dnsmasq \
&& echo "conf-dir=/etc/dnsmasq.d/,*.conf" >> /etc/dnsmasq.conf \
&& mkdir -p /etc/dnsmasq.d \
&& rm -rf /var/cache/apk/*
&& apk add --no-cache dnsmasq \
&& echo "conf-dir=/etc/dnsmasq.d/,*.conf" >> /etc/dnsmasq.conf
VOLUME /etc/dnsmasq.d
EXPOSE 53/tcp 53/udp 67/udp
EXPOSE 53/tcp \
53/udp \
67/udp
ENTRYPOINT ["/usr/sbin/dnsmasq", "--no-daemon", "--user=dnsmasq", "--group=dnsmasq"]
ENTRYPOINT ["dnsmasq", "--no-daemon", "--user=dnsmasq", "--group=dnsmasq"]