aboutsummaryrefslogtreecommitdiff
path: root/bind/Dockerfile
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2020-08-10 17:43:50 +0000
committerMike Crute <mike@crute.us>2020-08-10 17:43:50 +0000
commit68694707ae2f80a647e64926cbf4cc66d71e96e5 (patch)
tree45f250960c8d470ee895285b2686402cf88fc7a3 /bind/Dockerfile
parent4a686fb5917145458c5d69f8c2f9d7988f86eea6 (diff)
downloaddockerfiles-68694707ae2f80a647e64926cbf4cc66d71e96e5.tar.bz2
dockerfiles-68694707ae2f80a647e64926cbf4cc66d71e96e5.tar.xz
dockerfiles-68694707ae2f80a647e64926cbf4cc66d71e96e5.zip
bind: convert to config generation
Diffstat (limited to 'bind/Dockerfile')
-rw-r--r--bind/Dockerfile7
1 files changed, 4 insertions, 3 deletions
diff --git a/bind/Dockerfile b/bind/Dockerfile
index 23e731f..677eaf4 100644
--- a/bind/Dockerfile
+++ b/bind/Dockerfile
@@ -9,15 +9,16 @@ RUN set -euxo pipefail; \
9 ; \ 9 ; \
10 rm -rf /etc/bind/*; \ 10 rm -rf /etc/bind/*; \
11 mkdir -p /etc/bind/local; \ 11 mkdir -p /etc/bind/local; \
12 ln -s /usr/share/dnssec-root/bind-dnssec-root.keys /etc/bind/bind.keys; \ 12 ln -s /usr/share/dnssec-root/bind-dnssec-root.keys /etc/bind/bind.keys; \
13 \ 13 \
14 curl -o /etc/bind/db.root https://www.internic.net/domain/named.cache; 14 curl -o /etc/bind/db.root https://www.internic.net/domain/named.cache;
15 15
16ADD entrypoint.sh /
17ADD conf/ /etc/bind/ 16ADD conf/ /etc/bind/
17ADD bind_bootstrap /
18ADD zones.yaml /etc/bind/zones.yaml
18 19
19RUN set -euxo pipefail; \ 20RUN set -euxo pipefail; \
20 chown -R named:named /etc/bind; 21 chown -R named:named /etc/bind;
21 22
22ENTRYPOINT [ "/entrypoint.sh" ] 23ENTRYPOINT [ "/bind_bootstrap" ]
23CMD [ "/usr/sbin/named", "-u", "named", "-g" ] 24CMD [ "/usr/sbin/named", "-u", "named", "-g" ]