mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2024-12-25 02:29:32 +02:00
29 lines
649 B
Docker
29 lines
649 B
Docker
FROM alpine:3.17
|
|
|
|
LABEL maintainer "The Infrastructure Company GmbH <info@servercow.de>"
|
|
|
|
RUN apk add --update --no-cache \
|
|
curl \
|
|
unbound \
|
|
bash \
|
|
openssl \
|
|
drill \
|
|
tzdata \
|
|
&& curl -o /etc/unbound/root.hints https://www.internic.net/domain/named.cache \
|
|
&& chown root:unbound /etc/unbound \
|
|
&& adduser unbound tty \
|
|
&& chmod 775 /etc/unbound
|
|
|
|
EXPOSE 53/udp 53/tcp
|
|
|
|
COPY docker-entrypoint.sh /docker-entrypoint.sh
|
|
|
|
# healthcheck (nslookup)
|
|
COPY healthcheck.sh /healthcheck.sh
|
|
RUN chmod +x /healthcheck.sh
|
|
HEALTHCHECK --interval=30s --timeout=10s CMD [ "/healthcheck.sh" ]
|
|
|
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
|
|
|
CMD ["/usr/sbin/unbound"]
|