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

1234567891011121314151617181920212223242526272829303132333435363738
  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-rec-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. RUN DEBIAN_FRONTEND=noninteractive apt-get update &&\
  12. apt-get install -y pdns-recursor &&\
  13. apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  14. RUN rm -rf /etc/powerdns/*
  15. RUN rm -rf /var/log/*
  16. COPY ./vars-vars /etc/vars-vars
  17. COPY ./vars-files /etc/vars-files
  18. COPY ./common.sh /common.sh
  19. COPY ./run.sh /run.sh
  20. RUN mkdir "${CONFIG_DIR}"
  21. COPY ./config/recursor.conf "${CONFIG_DIR}"/recursor.conf
  22. EXPOSE 53/udp
  23. CMD ["/run.sh"]