-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
executable file
·25 lines (19 loc) · 919 Bytes
/
Dockerfile
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 ubuntu:20.04
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y libnet-ssleay-perl libauthen-pam-perl libio-pty-perl python python3 python3-pip wget libxml-parser-perl && \
rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/*
# apt-show-versions
RUN rm /etc/apt/apt.conf.d/docker-gzip-indexes && \
apt-get purge apt-show-versions && \
rm -f /var/lib/apt/lists/*lz4 && \
apt-get -o Acquire::GzipIndexes=false update && \
apt-get install apt-show-versions -y
RUN pip3 install requests && \
wget https://netcologne.dl.sourceforge.net/project/webadmin/webmin/1.900/webmin_1.900_all.deb && \
dpkg -i webmin_1.900_all.deb && \
apt-get --fix-broken install -f -y && \
/usr/share/webmin/changepass.pl /etc/webmin/ root admin && \
sed --in-place s/passwd_mode=.*/passwd_mode=2/1 /etc/webmin/miniserv.conf
EXPOSE 10000
CMD /etc/webmin/start && /bin/bash