FROM robinthoni/debian-multiarch:jessie MAINTAINER Robin Thoni ARG CONFIG_DIR=/etc/default/config-files/ RUN apt-get update && apt-get -y install\ bind9\ dnsutils\ bind9utils &&\ apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* RUN rm -rf /var/log/* COPY ./vars-vars /etc/vars-vars COPY ./vars-files /etc/vars-files COPY ./common.sh /common.sh COPY ./run.sh /run.sh RUN mkdir "${CONFIG_DIR}" COPY ./config "${CONFIG_DIR}" EXPOSE 53/udp 53/tcp CMD ["/run.sh"]