docker-bind/Dockerfile

30 lines
714 B
Docker
Raw Permalink Normal View History

2015-09-07 21:26:49 -07:00
FROM ubuntu:trusty
2015-02-27 18:14:25 -08:00
MAINTAINER Dave P
ADD start /start
# Install bind and dns utils
RUN chmod +x /start ; \
apt-get update ; \
2015-09-07 21:26:49 -07:00
apt-get install -y supervisor bind9 dnsutils ; \
2015-02-27 18:14:25 -08:00
rm /etc/bind/rndc.key ; \
mkdir /var/run/named ; \
chown bind /var/run/named ; \
chgrp bind /var/run/named ; \
touch /var/log/named.log ; \
chgrp bind /var/log/named.log ; \
chmod 775 /var/log/named.log ; \
mkdir /start.d ; \
rm -rf /var/lib/apt/lists/*
2015-09-07 21:26:49 -07:00
# Supervisor script
ADD bind.conf /etc/supervisor/conf.d/bind.conf
ADD supervisor.conf /etc/supervisor/conf.d/supervisor.conf
# Bind setup script
ADD regen-bind-key /start.d/regen-bind-key
2015-02-27 18:14:25 -08:00
# DNS port
EXPOSE 53/udp
ENTRYPOINT ["/start"]