blob: a937e7e6b118e8ccf9e47e18658a2c8db3cae537 [file] [log] [blame]
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +01001FROM alpine:3.14
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"]