aboutsummaryrefslogtreecommitdiffstats
path: root/bind9/Dockerfile
blob: 537f786d3adb2253b6bcc25f148d0559bd0dea3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM	debian:stable

LABEL	name="bind9" \
	description="Bind9 DNS server" \
	version="1.0" \
	maintainer="laforge@gnumonks.org"

RUN	apt-get update && \
	apt-get install -y \
		bind9 \
	&& rm -rf /var/lib/apt/lists/* \
	&& mkdir -p /run/named \
	&& chown bind:bind /run/named

EXPOSE	53/tcp \
	53/udp

VOLUME	/etc/named

ENTRYPOINT  ["/usr/sbin/named", "-c", "/etc/named/named.conf", "-u", "bind", "-g"]