blob: 677eaf45fb3118fe627bbb4a1c609f372fd40157 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
FROM alpine:edge
LABEL maintainer="Mike Crute <mike@crute.us>"
RUN set -euxo pipefail; \
apk add --no-cache \
bind \
bind-tools \
gettext \
; \
rm -rf /etc/bind/*; \
mkdir -p /etc/bind/local; \
ln -s /usr/share/dnssec-root/bind-dnssec-root.keys /etc/bind/bind.keys; \
\
curl -o /etc/bind/db.root https://www.internic.net/domain/named.cache;
ADD conf/ /etc/bind/
ADD bind_bootstrap /
ADD zones.yaml /etc/bind/zones.yaml
RUN set -euxo pipefail; \
chown -R named:named /etc/bind;
ENTRYPOINT [ "/bind_bootstrap" ]
CMD [ "/usr/sbin/named", "-u", "named", "-g" ]
|