-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
executable file
·31 lines (24 loc) · 1.13 KB
/
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
26
27
28
29
30
31
FROM ubuntu:20.04
ARG DEBIAN_FRONTEND=noninteractive
WORKDIR /root
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 && \
apt-get --fix-broken install -f -y
RUN rm /etc/apt/apt.conf.d/docker-gzip-indexes && \
apt-get purge apt-show-versions && \
rm /var/lib/apt/lists/*lz4 && \
apt-get -o Acquire::GzipIndexes=false update && \
apt-get install apt-show-versions -y
RUN pip3 install requests
RUN 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 -y
RUN /usr/share/webmin/changepass.pl /etc/webmin root admin
ARG USER="test"
RUN useradd $USER && \
echo "$USER:qwerty" | chpasswd && \
echo "$USER:x::::::::::::" | tee -a /etc/webmin/miniserv.users && \
echo "$USER: " | tee -a /etc/webmin/webmin.acl
EXPOSE 10000
# CMD /usr/bin/perl /usr/share/webmin/miniserv.pl /etc/webmin/miniserv.conf && echo "\nServer running...\n" && /bin/bash
CMD /etc/webmin/start && echo "\nServer running...\n" && /bin/bash