forked from sameersbn/docker-bind
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
24 lines (20 loc) · 828 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
FROM sameersbn/ubuntu:14.04.20161014
MAINTAINER [email protected]
ENV DATA_DIR=/data \
BIND_USER=bind \
WEBMIN_VERSION=1.820
RUN rm -rf /etc/apt/apt.conf.d/docker-gzip-indexes \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y bind9 perl libnet-ssleay-perl openssl \
libauthen-pam-perl libpam-runtime libio-pty-perl dnsutils \
apt-show-versions python \
&& wget "http://prdownloads.sourceforge.net/webadmin/webmin_${WEBMIN_VERSION}_all.deb" -P /tmp/ \
&& dpkg -i /tmp/webmin_${WEBMIN_VERSION}_all.deb \
&& rm -rf /tmp/webmin_${WEBMIN_VERSION}_all.deb \
&& rm -rf /var/lib/apt/lists/*
COPY entrypoint.sh /sbin/entrypoint.sh
RUN chmod 755 /sbin/entrypoint.sh
EXPOSE 53/udp 53/tcp 10000/tcp
VOLUME ["${DATA_DIR}"]
ENTRYPOINT ["/sbin/entrypoint.sh"]
CMD ["/usr/sbin/named"]