1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-14 10:53:30 +02:00
Mailu/optional/unbound/Dockerfile
2023-01-04 19:19:43 +01:00

25 lines
546 B
Docker

# syntax=docker/dockerfile-upstream:1.4.3
# resolver image
FROM base
ARG VERSION=local
LABEL version=$VERSION
RUN set -euxo pipefail \
; apk add --no-cache bind-tools unbound \
; curl -so /etc/unbound/root.hints https://www.internic.net/domain/named.cache \
; chown root:unbound /etc/unbound \
; chmod 775 /etc/unbound \
; /usr/sbin/unbound-anchor -a /etc/unbound/trusted-key.key || true
COPY unbound.conf /
COPY start.py /
RUN echo $VERSION >/version
#EXPOSE 53/udp 53/tcp
HEALTHCHECK CMD dig @127.0.0.1 || exit 1
CMD /start.py