nsd-docker/Dockerfile

14 lines
365 B
Docker
Raw Normal View History

2020-04-20 08:43:23 +00:00
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"]