first commit
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
This commit is contained in:
21
base/webmin/1.910/Dockerfile
Normal file
21
base/webmin/1.910/Dockerfile
Normal file
@@ -0,0 +1,21 @@
|
||||
FROM debian:jessie
|
||||
|
||||
LABEL maintainer="phithon <root@leavesongs.com>"
|
||||
|
||||
RUN set -ex \
|
||||
&& apt-get -o Acquire::GzipIndexes=false update \
|
||||
&& apt-get install -y --no-install-recommends apt-show-versions gdebi-core wget ca-certificates \
|
||||
&& wget -O /tmp/webmin.deb https://sourceforge.net/projects/webadmin/files/webmin/1.910/webmin_1.910_all.deb/download \
|
||||
&& gdebi -n /tmp/webmin.deb \
|
||||
&& apt-get purge -y --auto-remove gdebi-core \
|
||||
&& rm -rf /var/lib/apt/lists/* /tmp/webmin.deb
|
||||
|
||||
COPY docker-entrypoint.sh /
|
||||
EXPOSE 10000
|
||||
|
||||
RUN set -ex \
|
||||
&& sed -i 's/passwd_mode=.*/passwd_mode=2/' /etc/webmin/miniserv.conf \
|
||||
&& chmod +x /docker-entrypoint.sh \
|
||||
&& echo 'root:vulhub' | chpasswd
|
||||
|
||||
ENTRYPOINT ["/docker-entrypoint.sh"]
|
11
base/webmin/1.910/docker-entrypoint.sh
Normal file
11
base/webmin/1.910/docker-entrypoint.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -ex
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
service webmin start
|
||||
touch /var/webmin/miniserv.log
|
||||
exec tail -f /var/webmin/miniserv.log
|
||||
fi
|
||||
|
||||
exec "$@"
|
Reference in New Issue
Block a user