-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
root
authored and
root
committed
Apr 7, 2023
1 parent
0b4476d
commit 9667139
Showing
1 changed file
with
6 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,25 @@ | ||
FROM ubuntu:focal-20230308 AS add-apt-repositories | ||
|
||
FROM debian:bullseye-20230320 AS add-apt-repositories | ||
RUN apt-get update \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install -y gnupg \ | ||
&& apt-key adv --fetch-keys http://www.webmin.com/jcameron-key.asc \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install -y gnupg ca-certificates apt-utils \ | ||
&& apt-get update \ | ||
&& apt-key adv --fetch-keys https://webmin.com/jcameron-key.asc \ | ||
&& echo "deb http://download.webmin.com/download/repository sarge contrib" >> /etc/apt/sources.list | ||
|
||
FROM ubuntu:focal-20230308 | ||
|
||
FROM debian:bullseye-20230320 | ||
LABEL maintainer="[email protected]" | ||
|
||
ENV BIND_USER=bind \ | ||
BIND_VERSION=9.16.37 \ | ||
WEBMIN_VERSION=2.020 \ | ||
WEBMIN_VERSION=2.021 \ | ||
DATA_DIR=/data | ||
|
||
COPY --from=add-apt-repositories /etc/apt/trusted.gpg /etc/apt/trusted.gpg | ||
|
||
COPY --from=add-apt-repositories /etc/apt/sources.list /etc/apt/sources.list | ||
|
||
RUN rm -rf /etc/apt/apt.conf.d/docker-gzip-indexes \ | ||
&& apt-get update \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \ | ||
bind9=1:${BIND_VERSION}* bind9-host=1:${BIND_VERSION}* dnsutils \ | ||
webmin=${WEBMIN_VERSION}* \ | ||
&& 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"] |