Cleanup of directory for zones back to /var/cache/bind. Also stable release tag

This commit is contained in:
Ventz Petkov
2018-02-28 10:50:35 -05:00
parent 1695a7a4d6
commit 22307fab9c
5 changed files with 14 additions and 13 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ RUN apk --update upgrade && apk add bind
# &
# Get latest bind.keys
RUN mkdir -m 0770 -p /etc/bind && chown -R root:named /etc/bind ; \
mkdir -m 0770 -p /var/bind && chown -R root:named /var/cache ; \
mkdir -m 0770 -p /var/cache/bind && chown -R root:named /var/cache/bind ; \
wget -q -O /etc/bind/bind.keys https://ftp.isc.org/isc/bind9/keys/9.11/bind.keys.v9_11 ; \
rndc-confgen -a -r /dev/urandom
@@ -24,7 +24,7 @@ COPY configs/. /etc/bind/
# "if any build steps change the data within the volume
# after it has been declared, those changes will be discarded."
VOLUME ["/etc/bind"]
VOLUME ["/var/bind"]
VOLUME ["/var/cache/bind"]
COPY entrypoint.sh /
ENTRYPOINT ["/entrypoint.sh"]