2018-09-12 07:41:39 +02:00
|
|
|
FROM ubuntu
|
2018-11-16 19:30:15 +01:00
|
|
|
EXPOSE 80 139 445
|
2018-09-12 07:41:39 +02:00
|
|
|
WORKDIR /
|
|
|
|
COPY Service-check.sh .
|
|
|
|
RUN apt-get update && apt-get upgrade -y
|
|
|
|
RUN apt-get install apt-transport-https wget samba samba-common -y && \
|
2018-11-16 19:30:15 +01:00
|
|
|
mkdir /media/storage /data /data/samba /data/webmin && \
|
|
|
|
chmod 0777 /media/storage /data /data/samba /data/webmin && \
|
2018-11-17 07:31:31 +01:00
|
|
|
ln /data/samba /etc/samba && \
|
|
|
|
ln /data/webmin /etc/webmin
|
2018-09-12 07:41:39 +02:00
|
|
|
|
|
|
|
RUN echo "deb https://download.webmin.com/download/repository sarge contrib" >> /etc/apt/sources.list && \
|
|
|
|
cd /root && \
|
|
|
|
wget http://www.webmin.com/jcameron-key.asc && \
|
|
|
|
apt-key add jcameron-key.asc
|
|
|
|
|
|
|
|
RUN rm /etc/apt/apt.conf.d/docker-gzip-indexes && \
|
|
|
|
apt-get purge apt-show-versions -y && \
|
|
|
|
rm /var/lib/apt/lists/*lz4 && \
|
|
|
|
apt-get -o Acquire::GzipIndexes=false update -y
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install webmin -y
|
|
|
|
|
|
|
|
RUN sed -i 's/10000/80/g' /etc/webmin/miniserv.conf && \
|
|
|
|
sed -i 's/ssl=1/ssl=0/g' /etc/webmin/miniserv.conf
|
|
|
|
|
|
|
|
RUN echo root:webmin | chpasswd
|
2018-11-17 01:44:31 +01:00
|
|
|
VOLUME /data
|
2018-11-17 07:31:31 +01:00
|
|
|
CMD [ "/bin/bash","/Service-check.sh" ]
|