diff options
author | Mike Crute <mike@crute.us> | 2020-08-10 17:43:50 +0000 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2020-08-10 17:43:50 +0000 |
commit | 68694707ae2f80a647e64926cbf4cc66d71e96e5 (patch) | |
tree | 45f250960c8d470ee895285b2686402cf88fc7a3 /bind/Dockerfile | |
parent | 4a686fb5917145458c5d69f8c2f9d7988f86eea6 (diff) | |
download | dockerfiles-68694707ae2f80a647e64926cbf4cc66d71e96e5.tar.bz2 dockerfiles-68694707ae2f80a647e64926cbf4cc66d71e96e5.tar.xz dockerfiles-68694707ae2f80a647e64926cbf4cc66d71e96e5.zip |
bind: convert to config generation
Diffstat (limited to 'bind/Dockerfile')
-rw-r--r-- | bind/Dockerfile | 7 |
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 | ||
16 | ADD entrypoint.sh / | ||
17 | ADD conf/ /etc/bind/ | 16 | ADD conf/ /etc/bind/ |
17 | ADD bind_bootstrap / | ||
18 | ADD zones.yaml /etc/bind/zones.yaml | ||
18 | 19 | ||
19 | RUN set -euxo pipefail; \ | 20 | RUN set -euxo pipefail; \ |
20 | chown -R named:named /etc/bind; | 21 | chown -R named:named /etc/bind; |
21 | 22 | ||
22 | ENTRYPOINT [ "/entrypoint.sh" ] | 23 | ENTRYPOINT [ "/bind_bootstrap" ] |
23 | CMD [ "/usr/sbin/named", "-u", "named", "-g" ] | 24 | CMD [ "/usr/sbin/named", "-u", "named", "-g" ] |