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 &&\ apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* RUN rm -rf /etc/powerdns/* RUN rm -rf /var/log/* 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"]