blob: d9756d0438b1dd49de6287ce2f729e6c7c856448 [file] [log] [blame]
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +01001FROM alpine:3.17
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +01002
3LABEL maintainer "Andre Peters <andre.peters@servercow.de>"
4
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
21ENTRYPOINT ["/docker-entrypoint.sh"]
22
23CMD ["/usr/sbin/unbound"]