Skip to content

Commit

Permalink
Updated Webmin 2.021
Browse files Browse the repository at this point in the history
  • 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.
23 changes: 6 additions & 17 deletions Dockerfile
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"]

0 comments on commit 9667139

Please sign in to comment.