2024-01-22 11:26:26 +01:00
|
|
|
FROM alpine:3.18
|
2017-06-12 23:48:27 +02:00
|
|
|
|
2023-04-26 10:37:20 +02:00
|
|
|
LABEL maintainer "The Infrastructure Company GmbH GmbH <info@servercow.de>"
|
2017-06-12 23:48:27 +02:00
|
|
|
|
|
|
|
RUN apk add --update --no-cache \
|
|
|
|
curl \
|
2024-01-15 15:13:37 +01:00
|
|
|
bind-tools \
|
2017-06-12 23:48:27 +02:00
|
|
|
unbound \
|
|
|
|
bash \
|
|
|
|
openssl \
|
|
|
|
drill \
|
2019-02-08 17:03:16 +01:00
|
|
|
tzdata \
|
2017-06-12 23:48:27 +02:00
|
|
|
&& curl -o /etc/unbound/root.hints https://www.internic.net/domain/named.cache \
|
|
|
|
&& chown root:unbound /etc/unbound \
|
2018-09-30 14:43:18 +02:00
|
|
|
&& adduser unbound tty \
|
2017-06-12 23:48:27 +02:00
|
|
|
&& chmod 775 /etc/unbound
|
|
|
|
|
|
|
|
EXPOSE 53/udp 53/tcp
|
|
|
|
|
|
|
|
COPY docker-entrypoint.sh /docker-entrypoint.sh
|
|
|
|
|
2024-02-08 15:55:26 +01:00
|
|
|
# healthcheck (dig, ping)
|
2023-10-11 15:48:25 +02:00
|
|
|
COPY healthcheck.sh /healthcheck.sh
|
|
|
|
RUN chmod +x /healthcheck.sh
|
2024-02-08 12:23:46 +01:00
|
|
|
HEALTHCHECK --interval=30s --timeout=30s CMD [ "/healthcheck.sh" ]
|
2023-10-11 15:48:25 +02:00
|
|
|
|
2017-06-12 23:48:27 +02:00
|
|
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
2019-10-18 12:01:47 +02:00
|
|
|
|
|
|
|
CMD ["/usr/sbin/unbound"]
|