FROM alpine:edge LABEL maintainer="Mike Crute " RUN set -euxo pipefail; \ apk add --no-cache \ bind \ bind-tools \ gettext \ ; \ rm -rf /etc/bind/*; \ mkdir -p /etc/bind/local; \ ln -s /usr/share/dnssec-root/bind-dnssec-root.keys /etc/bind/bind.keys; \ \ curl -o /etc/bind/db.root https://www.internic.net/domain/named.cache; ADD conf/ /etc/bind/ ADD bind_bootstrap / ADD zones.yaml /etc/bind/zones.yaml RUN set -euxo pipefail; \ chown -R named:named /etc/bind; ENTRYPOINT [ "/bind_bootstrap" ] CMD [ "/usr/sbin/named", "-u", "named", "-g" ]