Containers/daemons/nsd/Containerfile

13 lines
268 B
Docker

FROM alpine:latest
ARG CONFIG=/etc/redxen/nsd/nsd.conf
RUN --network=host apk add nsd
ADD nsd.conf $CONFIG
COPY --from=redxen.eu/data/dns:latest /dns-zones/redxen.eu /etc/redxen/bindzone/redxen.eu
RUN nsd-checkconf $CONFIG
ENV CONFIG $CONFIG
CMD nsd -d -c $CONFIG