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

12345678910111213141516171819202122232425262728293031323334353637383940
  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. COPY ./vars-vars /etc/vars-vars
  18. COPY ./vars-files /etc/vars-files
  19. COPY ./common.sh /common.sh
  20. COPY ./run.sh /run.sh
  21. RUN mkdir "${CONFIG_DIR}"
  22. COPY ./config/pdns.conf "${CONFIG_DIR}"/pdns.conf
  23. EXPOSE 53/udp
  24. CMD ["/run.sh"]