2024-06-05 11:52:48 +02:00
|
|
|
FROM alpine:3.20
|
2017-06-12 23:48:27 +02:00
|
|
|
|
2024-08-06 21:44:59 +02:00
|
|
|
LABEL maintainer = "The Infrastructure Company GmbH <info@servercow.de>"
|
2017-06-12 23:48:27 +02:00
|
|
|
|
|
|
|
RUN apk add --update --no-cache \
|
|
|
|
curl \
|
2024-01-15 16:13:37 +02:00
|
|
|
bind-tools \
|
2024-08-13 15:59:57 +02:00
|
|
|
coreutils \
|
2017-06-12 23:48:27 +02:00
|
|
|
unbound \
|
|
|
|
bash \
|
|
|
|
openssl \
|
|
|
|
drill \
|
2019-02-08 18:03:16 +02:00
|
|
|
tzdata \
|
2024-08-13 15:59:57 +02:00
|
|
|
syslog-ng \
|
|
|
|
supervisor \
|
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 \
|
2024-08-13 15:59:57 +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 16:55:26 +02:00
|
|
|
# healthcheck (dig, ping)
|
2023-10-11 15:48:25 +02:00
|
|
|
COPY healthcheck.sh /healthcheck.sh
|
2024-08-13 15:59:57 +02:00
|
|
|
COPY syslog-ng.conf /etc/syslog-ng/syslog-ng.conf
|
|
|
|
COPY supervisord.conf /etc/supervisor/supervisord.conf
|
|
|
|
COPY stop-supervisor.sh /usr/local/sbin/stop-supervisor.sh
|
|
|
|
|
2023-10-11 15:48:25 +02:00
|
|
|
RUN chmod +x /healthcheck.sh
|
2024-08-13 15:59:57 +02:00
|
|
|
HEALTHCHECK --interval=30s --timeout=10s \
|
|
|
|
CMD sh -c '[ -f /tmp/healthcheck_status ] && [ "$(cat /tmp/healthcheck_status)" -eq 0 ] || exit 1'
|
2023-10-11 15:48:25 +02:00
|
|
|
|
2017-06-12 23:48:27 +02:00
|
|
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
2024-08-19 10:42:11 +02:00
|
|
|
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"]
|