forked from sameersbn/docker-bind
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (22 loc) · 808 Bytes
/
Dockerfile
File metadata and controls
30 lines (22 loc) · 808 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
26
27
28
29
30
FROM ubuntu:24.04
ENV BIND_USER=bind \
BIND_VERSION=9.18.39 \
WEBMIN_VERSION=2.630 \
DATA_DIR=/data
# install common package
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
bind9=1:${BIND_VERSION}* bind9-host=1:${BIND_VERSION}* \
dnsutils \
cron
# install webmin package
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y curl \
&& curl -o setup-repos.sh https://raw.githubusercontent.com/webmin/webmin/master/setup-repos.sh \
&& sh setup-repos.sh -f \
&& DEBIAN_FRONTEND=noninteractive apt-get install --install-recommends -y webmin=${WEBMIN_VERSION}*
COPY rootfs/ /
RUN rm -rf /var/lib/apt/lists/* \
&& chmod 755 /entrypoint.sh /usr/bin/systemctl
EXPOSE 53/udp 53/tcp 10000/tcp
ENTRYPOINT ["/entrypoint.sh"]
CMD ["/usr/sbin/named"]