From 054c64d3a64bf52646ccde47ad0e52985e8a5da7 Mon Sep 17 00:00:00 2001 From: Jon Date: Sun, 12 Nov 2023 21:13:23 +0930 Subject: [PATCH] fix: ensure correct permissions for bind config files !1 --- dockerfile | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/dockerfile b/dockerfile index 5430b6f..ea13612 100644 --- a/dockerfile +++ b/dockerfile @@ -8,16 +8,16 @@ ARG VERSION_BIND RUN \ - apk upgrade --no-cache; \ - apk add --no-cache \ - bind==${VERSION_BIND} \ - supervisor; + apk upgrade --no-cache; \ + apk add --no-cache \ + bind==${VERSION_BIND} \ + supervisor; EXPOSE \ - 53/tcp \ - 53/udp - # Others required? dnssec, secure updates, sone transfers DOT etc + 53/tcp \ + 53/udp + # Others required? dnssec, secure updates, sone transfers DOT etc 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/ / +RUN \ + chown named:named -R /etc/bind; \ + chmod 5771 /etc/bind; + + CMD [ "/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf" ]