You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Dockerfile 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. FROM robinthoni/debian-multiarch:jessie
  2. MAINTAINER Robin Thoni <robin@rthoni.com>
  3. ARG CONFIG_DIR=/etc/default/config-files/
  4. RUN apt-get update && \
  5. apt-get install -y curl && \
  6. apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  7. RUN dist=$(if uname -m | grep -iq arm ; then echo raspbian; else echo debian; fi) &&\
  8. echo "deb http://repo.powerdns.com/${dist} jessie-auth-40 main" > /etc/apt/sources.list.d/pdns.list && \
  9. echo 'Package: pdns-*\nPin: origin repo.powerdns.com\nPin-Priority: 600' > /etc/apt/preferences.d/pdns && \
  10. curl https://repo.powerdns.com/FD380FBB-pub.asc | apt-key add -
  11. COPY ./preseed.txt /tmp/preseed.txt
  12. RUN debconf-set-selections /tmp/preseed.txt
  13. RUN DEBIAN_FRONTEND=noninteractive apt-get update &&\
  14. apt-get install -y pdns-server pdns-backend-pgsql &&\
  15. apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  16. RUN rm -rf /var/log/*
  17. RUN rm -rf /etc/powerdns/*
  18. COPY ./vars-vars /etc/vars-vars
  19. COPY ./vars-files /etc/vars-files
  20. COPY ./common.sh /common.sh
  21. COPY ./run.sh /run.sh
  22. RUN mkdir "${CONFIG_DIR}"
  23. COPY ./config/pdns.conf "${CONFIG_DIR}"/pdns.conf
  24. EXPOSE 53/udp
  25. CMD ["/run.sh"]