Don't generate the rndc.key file - it would be same in all images

This commit is contained in:
Ondřej Surý
2024-08-27 10:06:51 +02:00
parent 71c4076ca4
commit 6ab70cb006
-4
View File
@@ -81,10 +81,6 @@ RUN mkdir -p /etc/bind && chown root:bind /etc/bind/ && chmod 755 /etc/bind
COPY named.conf /etc/bind
RUN chown root:bind /etc/bind/named.conf && chmod 644 /etc/bind/named.conf
# Generate the default RNDC key
RUN rndc-confgen -a
RUN chown root:bind /etc/bind/rndc.key && chmod 644 /etc/bind/rndc.key
# Create working directory
RUN mkdir -p /var/cache/bind && chown bind:bind /var/cache/bind && chmod 755 /var/cache/bind