-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (21 loc) · 901 Bytes
/
Copy pathDockerfile
File metadata and controls
29 lines (21 loc) · 901 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
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
# Grundpakete
RUN apt-get update && \
apt-get install -y curl gnupg2 apt-transport-https wget software-properties-common
# Webmin GPG Key und Repository
RUN mkdir -p /etc/apt/keyrings
RUN curl -fsSL http://www.webmin.com/jcameron-key.asc -o /etc/apt/keyrings/webmin.asc
RUN gpg --dearmor -o /etc/apt/keyrings/webmin.gpg /etc/apt/keyrings/webmin.asc
RUN echo "deb [signed-by=/etc/apt/keyrings/webmin.gpg] http://download.webmin.com/download/repository sarge contrib" > /etc/apt/sources.list.d/webmin.list
# Erst Webmin
RUN apt-get update && \
apt-get install -y webmin
# Dann iproute2 (separat, falls Webmin sich querstellt)
RUN apt-get update && \
apt-get install -y iproute2 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]