Bind / Named in a container
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.

29 lines
714 B

6 years ago
6 years ago
6 years ago
  1. FROM ubuntu:trusty
  2. MAINTAINER Dave P
  3. ADD start /start
  4. # Install bind and dns utils
  5. RUN chmod +x /start ; \
  6. apt-get update ; \
  7. apt-get install -y supervisor bind9 dnsutils ; \
  8. rm /etc/bind/rndc.key ; \
  9. mkdir /var/run/named ; \
  10. chown bind /var/run/named ; \
  11. chgrp bind /var/run/named ; \
  12. touch /var/log/named.log ; \
  13. chgrp bind /var/log/named.log ; \
  14. chmod 775 /var/log/named.log ; \
  15. mkdir /start.d ; \
  16. rm -rf /var/lib/apt/lists/*
  17. # Supervisor script
  18. ADD bind.conf /etc/supervisor/conf.d/bind.conf
  19. ADD supervisor.conf /etc/supervisor/conf.d/supervisor.conf
  20. # Bind setup script
  21. ADD regen-bind-key /start.d/regen-bind-key
  22. # DNS port
  23. EXPOSE 53/udp
  24. ENTRYPOINT ["/start"]