-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
25 lines (20 loc) · 676 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM debian:testing
MAINTAINER [email protected]
ENV BIND_USER=bind \
DATA_DIR=/data
RUN rm -rf /etc/apt/apt.conf.d/docker-gzip-indexes \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y wget bind9* bind9-host* dnsutils \
&& rm -rf /var/lib/apt/lists/*
COPY srvzone /srvzone
RUN chown bind.bind /srvzone \
&& chmod 700 /srvzone
COPY named.conf /etc/bind/named.conf
COPY srvzone.conf /srvzone.conf
COPY caching.conf /etc/bind/caching.conf
COPY root.hints /etc/bind/root.hints
COPY entrypoint.sh /sbin/entrypoint.sh
RUN chmod 755 /sbin/entrypoint.sh
EXPOSE 53/udp 53/tcp 10000/tcp
ENTRYPOINT ["/sbin/entrypoint.sh"]
CMD ["/usr/sbin/named"]