選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

Dockerfile 1.0KB

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