-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
61 lines (51 loc) · 1.51 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
FROM ubuntu
RUN apt update
RUN apt install -y wget lsb-core nano
WORKDIR /usr/loca/hestia/docker
## Download files
RUN wget https://raw.githubusercontent.com/hestiacp/hestiacp/release/install/hst-install-ubuntu.sh
RUN wget https://raw.githubusercontent.com/gdraheim/docker-systemctl-replacement/master/files/docker/systemctl3.py -O /usr/local/bin/systemctl
RUN chmod +x hst-install-ubuntu.sh
RUN chmod +x /usr/local/bin/systemctl
## Update installation files
RUN sed -i s/"systemctl start"/"echo systemctl start"/g hst-install-ubuntu.sh
RUN sed -i s/"systemctl restart"/"echo systemctl restart"/g hst-install-ubuntu.sh
RUN sed -i s/"^.*can't create \$servername domain.*"//g hst-install-ubuntu.sh
ARG PASSWORD=password
ARG HOSTNAME=hestia.domain.localhost
ARG APACHE=no
ARG PHPFPM=no
ARG NAMED=no
ARG VSFTPD=no
ARG PROFTPD=no
ARG IPTABLES=no
ARG FAIL2BAN=no
ARG QUOTA=no
ARG EXIM=no
ARG DOVECOT=no
ARG SPAMASSASSIN=no
ARG CLAMAV=no
ARG MYSQL=no
ARG POSTGRESQL=no
RUN bash hst-install-ubuntu.sh -f\
--interactive no\
--email ${EMAIL}\
--password ${PASSWORD}\
--hostname ${HOSTNAME} \
--apache ${APACHE} \
--phpfpm ${PHPFPM} \
--named ${NAMED} \
--vsftpd ${VSFTPD} \
--proftpd ${PROFTPD} \
--iptables ${IPTABLES} \
--fail2ban ${FAIL2BAN} \
--quota ${QUOTA} \
--exim ${EXIM} \
--dovecot ${DOVECOT} \
--spamassassin ${SPAMASSASSIN} \
--clamav ${CLAMAV} \
--mysql ${MYSQL} \
--postgresql ${POSTGRESQL}
COPY . .
ENTRYPOINT container.entry.sh