Dockerfile 649 B

12345678910111213141516171819202122232425262728
  1. FROM alpine:3.17
  2. LABEL maintainer "The Infrastructure Company GmbH <info@servercow.de>"
  3. RUN apk add --update --no-cache \
  4. curl \
  5. unbound \
  6. bash \
  7. openssl \
  8. drill \
  9. tzdata \
  10. && curl -o /etc/unbound/root.hints https://www.internic.net/domain/named.cache \
  11. && chown root:unbound /etc/unbound \
  12. && adduser unbound tty \
  13. && chmod 775 /etc/unbound
  14. EXPOSE 53/udp 53/tcp
  15. COPY docker-entrypoint.sh /docker-entrypoint.sh
  16. # healthcheck (nslookup)
  17. COPY healthcheck.sh /healthcheck.sh
  18. RUN chmod +x /healthcheck.sh
  19. HEALTHCHECK --interval=30s --timeout=10s CMD [ "/healthcheck.sh" ]
  20. ENTRYPOINT ["/docker-entrypoint.sh"]
  21. CMD ["/usr/sbin/unbound"]