add openssl and nsd-control-setup
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
0633502c7f
commit
729494e58f
@ -2,7 +2,7 @@ FROM alpine:latest
|
||||
|
||||
MAINTAINER Jochen Welzel
|
||||
|
||||
RUN apk update && apk upgrade && apk add bash && apk add nsd
|
||||
RUN apk update && apk upgrade && apk add bash && apk add openssl && 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 /
|
||||
|
@ -4,6 +4,9 @@ set -e
|
||||
if [ ! -f "/etc/nsd/nsd.conf" ]; then
|
||||
cp /tmp/nsd.conf.example /etc/nsd/nsd.conf
|
||||
fi
|
||||
if [ ! -f "/etc/nsd/nsd_control.pem" ]; then
|
||||
nsd-control-setup
|
||||
fi
|
||||
|
||||
exec nsd -d
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user