fix: ensure correct permissions for bind config files

!1
This commit is contained in:
2023-11-12 21:13:23 +09:30
parent fb9c09161a
commit 054c64d3a6

View File

@ -8,16 +8,16 @@ ARG VERSION_BIND
RUN \ RUN \
apk upgrade --no-cache; \ apk upgrade --no-cache; \
apk add --no-cache \ apk add --no-cache \
bind==${VERSION_BIND} \ bind==${VERSION_BIND} \
supervisor; supervisor;
EXPOSE \ EXPOSE \
53/tcp \ 53/tcp \
53/udp 53/udp
# Others required? dnssec, secure updates, sone transfers DOT etc # Others required? dnssec, secure updates, sone transfers DOT etc
HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 CMD \ HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 CMD \
@ -27,4 +27,9 @@ HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 CMD \
COPY includes/ / COPY includes/ /
RUN \
chown named:named -R /etc/bind; \
chmod 5771 /etc/bind;
CMD [ "/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf" ] CMD [ "/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf" ]