aboutsummaryrefslogtreecommitdiff
path: root/bind/Dockerfile
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2019-12-10 22:03:28 +0000
committerMike Crute <mike@crute.us>2019-12-10 22:07:18 +0000
commit34306c78d76fe0cc0885f528f37e100352e426d6 (patch)
tree5252cf3d39de2ea5818aeff45cb0933ea4c94660 /bind/Dockerfile
parent6dbd14383a3a3c784cabf4efa2dd423dfc042926 (diff)
downloaddockerfiles-34306c78d76fe0cc0885f528f37e100352e426d6.tar.bz2
dockerfiles-34306c78d76fe0cc0885f528f37e100352e426d6.tar.xz
dockerfiles-34306c78d76fe0cc0885f528f37e100352e426d6.zip
bind: Consolidate configuration files
Add DNS master/slave support to container so that slaves don't require any additional configuration outside of their environment. Pull common master/slave configuration into the base container.
Diffstat (limited to 'bind/Dockerfile')
-rw-r--r--bind/Dockerfile20
1 files changed, 18 insertions, 2 deletions
diff --git a/bind/Dockerfile b/bind/Dockerfile
index 864a64e..23e731f 100644
--- a/bind/Dockerfile
+++ b/bind/Dockerfile
@@ -1,7 +1,23 @@
1FROM alpine:edge 1FROM alpine:edge
2LABEL maintainer="Mike Crute <mike@crute.us>" 2LABEL maintainer="Mike Crute <mike@crute.us>"
3 3
4RUN \ 4RUN set -euxo pipefail; \
5 apk add --no-cache bind bind-tools 5 apk add --no-cache \
6 bind \
7 bind-tools \
8 gettext \
9 ; \
10 rm -rf /etc/bind/*; \
11 mkdir -p /etc/bind/local; \
12 ln -s /usr/share/dnssec-root/bind-dnssec-root.keys /etc/bind/bind.keys; \
13 \
14 curl -o /etc/bind/db.root https://www.internic.net/domain/named.cache;
6 15
16ADD entrypoint.sh /
17ADD conf/ /etc/bind/
18
19RUN set -euxo pipefail; \
20 chown -R named:named /etc/bind;
21
22ENTRYPOINT [ "/entrypoint.sh" ]
7CMD [ "/usr/sbin/named", "-u", "named", "-g" ] 23CMD [ "/usr/sbin/named", "-u", "named", "-g" ]