forked from bebasid/bebasid-unbound
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (24 loc) · 884 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM alpine:latest
RUN apk add \
supervisor \
drill \
gettext \
bind-tools \
sudo \
openssl \
curl
ARG UNBOUND_VERSION=1.17.1-r1
RUN apk add \
unbound=${UNBOUND_VERSION} \
&& rm -rf /etc/unbound/unbound.conf /etc/unbound/root.hints
ADD config/unbound.ini /etc/supervisor.d/supervisor-unbound.ini
ADD config/unbound.conf /etc/unbound/unbound.conf
ADD docker-entrypoint.sh /docker-entrypoint
COPY scripts /scripts
RUN chmod u+x /docker-entrypoint /scripts/*
RUN mkdir -p /etc/unbound/keys
RUN curl --ipv4 https://www.internic.net/domain/named.root > /etc/unbound/root.hints
ENV BEBASID_FAMILY_UNBOUND=true
ENTRYPOINT ["/docker-entrypoint"]
CMD [ "/usr/bin/supervisord", "-n", "-c", "/etc/supervisord.conf" ]
HEALTHCHECK --interval=1m --timeout=30s --start-period=10s CMD drill @127.0.0.1 google.com || exit 1