-
Notifications
You must be signed in to change notification settings - Fork 220
/
Copy pathDockerfile
44 lines (37 loc) · 1.34 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
32
33
34
35
36
37
38
39
40
41
42
43
44
# Use the latest Ubuntu image as a parent
FROM ubuntu:18.04
MAINTAINER cckuailong
ENV DEBIAN_FRONTEND=noninteractive TZ=Europe/Amsterdam
# Initial updates and install core utilities
RUN apt-get update -qq -y && \
apt-get upgrade -y && \
apt-get install -y \
wget \
curl \
apt-transport-https \
lsb-release \
ca-certificates \
gnupg2 \
software-properties-common \
locales \
cron \
systemd
RUN dpkg-reconfigure locales
COPY ./webmin_1.984_all.deb /tmp/webmin_1.984_all.deb
# Install Webmin
RUN echo root:password | chpasswd && \
echo "Acquire::GzipIndexes \"false\"; Acquire::CompressionTypes::Order:: \"gz\";" >/etc/apt/apt.conf.d/docker-gzip-indexes && \
update-locale LANG=C.UTF-8 && \
echo deb https://download.webmin.com/download/repository sarge contrib >> /etc/apt/sources.list && \
wget http://www.webmin.com/jcameron-key.asc && \
apt-key add jcameron-key.asc && \
apt-get update && \
apt-get install -y /tmp/webmin_1.984_all.deb && \
apt-get clean
EXPOSE 10000
ENV LC_ALL C.UTF-8
WORKDIR /home
RUN echo "#! /bin/bash" > entrypoint.sh && \
echo "sed -i 's;ssl=1;ssl=0;' /etc/webmin/miniserv.conf && systemctl enable cron && service webmin start && tail -f /dev/null" >> entrypoint.sh && \
chmod 755 entrypoint.sh
CMD /home/entrypoint.sh