FROM alpine:latest MAINTAINER Jochen Welzel RUN apk update && apk upgrade && apk add bash && apk add nsd RUN mkdir -p /var/db/nsd/zones/master && mkdir /var/db/nsd/zones/slave && mkdir /var/run/nsd COPY nsd.conf.example /tmp COPY entrypoint.sh / RUN chmod 755 /entrypoint.sh EXPOSE 53/TCP 53/UDP VOLUME ["/etc/nsd/", "/var/db/nsd"] ENTRYPOINT ["/entrypoint.sh"]