FROM debian:jessie MAINTAINER Robin Thoni COPY ./preseed.txt /tmp/preseed.txt RUN debconf-set-selections /tmp/preseed.txt RUN DEBIAN_FRONTEND=noninteractive apt-get update &&\ apt-get install -y pdns-server pdns-backend-pgsql rsyslog &&\ apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* RUN rm -rf /etc/powerdns/* RUN rm -rf /var/log/* &&\ mkfifo /var/log/mail.info &&\ ln -s /dev/null /var/log/mail.log &&\ ln -s /dev/stderr /var/log/mail.err &&\ ln -s /dev/null /var/log/syslog &&\ ln -s /dev/null /var/log/messages COPY ./config/ /etc/powerdns/ COPY ./vars-vars /etc/vars-vars COPY ./vars-files /etc/vars-files COPY ./run.sh /run.sh EXPOSE 53/udp CMD ["/run.sh"]