blob: b19090835283179e43f9b6ad8f7be32f249ce263 [file] [log] [blame]
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +01001FROM alpine:3.17
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +01002
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +01003LABEL maintainer "The Infrastructure Company GmbH <info@servercow.de>"
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +01004
5RUN apk add --update --no-cache \
6 curl \
7 unbound \
8 bash \
9 openssl \
10 drill \
11 tzdata \
12 && curl -o /etc/unbound/root.hints https://www.internic.net/domain/named.cache \
13 && chown root:unbound /etc/unbound \
14 && adduser unbound tty \
15 && chmod 775 /etc/unbound
16
17EXPOSE 53/udp 53/tcp
18
19COPY docker-entrypoint.sh /docker-entrypoint.sh
20
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +010021# healthcheck (nslookup)
22COPY healthcheck.sh /healthcheck.sh
23RUN chmod +x /healthcheck.sh
24HEALTHCHECK --interval=30s --timeout=10s CMD [ "/healthcheck.sh" ]
25
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +010026ENTRYPOINT ["/docker-entrypoint.sh"]
27
28CMD ["/usr/sbin/unbound"]