2018-10-13 16:12:01 +08:00
|
|
|
FROM alpine:3.8
|
2017-06-13 05:48:27 +08:00
|
|
|
|
|
|
|
LABEL maintainer "Andre Peters <andre.peters@servercow.de>"
|
|
|
|
|
|
|
|
RUN apk add --update --no-cache \
|
|
|
|
curl \
|
|
|
|
unbound \
|
|
|
|
bash \
|
|
|
|
openssl \
|
|
|
|
drill \
|
|
|
|
&& curl -o /etc/unbound/root.hints https://www.internic.net/domain/named.cache \
|
|
|
|
&& chown root:unbound /etc/unbound \
|
2018-09-30 20:43:18 +08:00
|
|
|
&& adduser unbound tty \
|
2017-06-13 05:48:27 +08:00
|
|
|
&& chmod 775 /etc/unbound
|
|
|
|
|
|
|
|
EXPOSE 53/udp 53/tcp
|
|
|
|
|
|
|
|
COPY docker-entrypoint.sh /docker-entrypoint.sh
|
|
|
|
|
|
|
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|