forked from sameersbn/docker-bind
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (21 loc) · 906 Bytes
/
Dockerfile
File metadata and controls
25 lines (21 loc) · 906 Bytes
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 arm32v7/ubuntu:xenial
LABEL description="This docker image is ready for \
DNS Bind operation on ARMv7."
LABEL maintainer="rgf1042@gmail.com"
ENV BIND_USER=bind \
BIND_VERSION=1:9.9.5 \
WEBMIN_VERSION=1.8 \
DATA_DIR=/data
RUN rm -rf /etc/apt/apt.conf.d/docker-gzip-indexes \
&& wget http://www.webmin.com/jcameron-key.asc -qO - | apt-key add - \
&& echo "deb http://download.webmin.com/download/repository sarge contrib" >> /etc/apt/sources.list \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y vim.tiny wget net-tools \
ca-certificates unzip apt-transport-https \
bind9=${BIND_VERSION}* bind9-host=${BIND_VERSION}* webmin=${WEBMIN_VERSION}* dnsutils \
&& 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
ENTRYPOINT ["/sbin/entrypoint.sh"]
CMD ["/usr/sbin/named"]