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" ]