2022-10-08 15:55:40 +02:00
|
|
|
# syntax=docker/dockerfile-upstream:1.4.3
|
2021-11-04 15:22:12 +02:00
|
|
|
|
2022-10-08 15:55:40 +02:00
|
|
|
# resolver image
|
|
|
|
FROM base
|
2021-11-04 15:22:12 +02:00
|
|
|
|
2022-10-08 15:55:40 +02:00
|
|
|
ARG VERSION=local
|
2021-11-17 22:00:04 +02:00
|
|
|
LABEL version=$VERSION
|
|
|
|
|
2022-10-08 15:55:40 +02:00
|
|
|
RUN set -euxo pipefail \
|
2022-10-14 14:34:58 +02:00
|
|
|
; apk add --no-cache bind-tools unbound \
|
2022-10-08 15:55:40 +02:00
|
|
|
; 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
|
2019-07-25 10:33:57 +02:00
|
|
|
|
2022-10-08 15:55:40 +02:00
|
|
|
COPY unbound.conf /
|
|
|
|
COPY start.py /
|
2019-07-25 10:33:57 +02:00
|
|
|
|
2022-10-08 15:55:40 +02:00
|
|
|
RUN echo $VERSION >/version
|
2018-10-23 14:07:49 +02:00
|
|
|
|
2023-01-04 20:19:43 +02:00
|
|
|
#EXPOSE 53/udp 53/tcp
|
2022-10-08 15:55:40 +02:00
|
|
|
HEALTHCHECK CMD dig @127.0.0.1 || exit 1
|
2018-10-23 14:07:49 +02:00
|
|
|
|
|
|
|
CMD /start.py
|