Dockerfile 685 B

12345678910111213141516171819202122232425262728293031
  1. FROM alpine:3.18
  2. LABEL maintainer "The Infrastructure Company GmbH GmbH <info@servercow.de>"
  3. RUN apk add --update --no-cache \
  4. curl \
  5. bind-tools \
  6. netcat-openbsd \
  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. EXPOSE 53/udp 53/tcp
  17. COPY docker-entrypoint.sh /docker-entrypoint.sh
  18. # healthcheck (nslookup)
  19. COPY healthcheck.sh /healthcheck.sh
  20. RUN chmod +x /healthcheck.sh
  21. HEALTHCHECK --interval=5s --timeout=30s CMD [ "/healthcheck.sh" ]
  22. ENTRYPOINT ["/docker-entrypoint.sh"]
  23. CMD ["/usr/sbin/unbound"]