diff --git a/pdns/Dockerfile b/pdns/Dockerfile index 5043034..7cdfe03 100644 --- a/pdns/Dockerfile +++ b/pdns/Dockerfile @@ -1,10 +1,12 @@ FROM debian:jessie MAINTAINER Fabio Rauber -ENV DEBIAN_FRONTEND="noninteractive" +ENV DNSSEC="yes" \ + APIKEY="" RUN apt-get update && \ - apt-get install -q -y pdns-server pdns-backend-mysql mysql-client && \ + DEBIAN_FRONTEND=noninteractive apt-get install -q -y pdns-server pdns-backend-mysql mysql-client && \ + rm /etc/powerdns/pdns.d/*.conf && rm /etc/powerdns/*.conf && \ apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* EXPOSE 53/udp 53/tcp diff --git a/pdns/start.sh b/pdns/start.sh index 169c3b9..34126e0 100644 --- a/pdns/start.sh +++ b/pdns/start.sh @@ -1,6 +1,6 @@ #!/bin/bash -mkdir -p /etc/powerdns +mkdir -p /etc/powerdns/pdns.d cat >/etc/powerdns/pdns.conf </etc/powerdns/pdns.d/api.conf <