-
Notifications
You must be signed in to change notification settings - Fork 11
/
Dockerfile
41 lines (35 loc) · 1.28 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
# Use the latest Ubuntu image as a parent
FROM ubuntu:focal
MAINTAINER "Johan Pienaar" <johan@pienaarfamilie.nl>
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
RUN dpkg-reconfigure locales
# 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 webmin && \
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