You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
580 B
Docker
26 lines
580 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 curl unbound \
|
|
; curl -so /etc/unbound/root.hints https://www.internic.net/domain/named.cache \
|
|
; chown root:unbound /etc/unbound \
|
|
; chmod 775 /etc/unbound \
|
|
; apk del --no-cache curl \
|
|
; /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
|