forked from spfuu/edomi-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (36 loc) · 958 Bytes
/
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
FROM centos:6.8
RUN yum update -y && yum upgrade -y
RUN yum -y install \
nano \
wget \
unzip \
php-devel \
mysql \
mysql-server \
vsftpd \
httpd \
tar \
php-gd \
php-mysql \
php-pear \
php-soap \
ntp \
openssh-server \
mod_ssl
ENV EDOMI_TMP_PATH /tmp
ENV EDOMI_ZIP $EDOMI_TMP_PATH/edomi.zip
ENV EDOMI_INSTALL_PATH $EDOMI_TMP_PATH/edomi/Install/
COPY bin/edomi_148.zip $EDOMI_ZIP
RUN unzip -q $EDOMI_ZIP -d $EDOMI_TMP_PATH
COPY bin/install.sh $EDOMI_INSTALL_PATH
RUN cd $EDOMI_INSTALL_PATH && ./install.sh
# set root passwd
RUN echo -e "123456\n123456" | (passwd --stdin root)
# enable ssl for edomi
RUN sed -i -e "\$aLoadModule log_config_module modules/mod_log_config.so" /etc/httpd/conf.d/ssl.conf
RUN sed -i -e "\$aLoadModule setenvif_module modules/mod_setenvif.so" /etc/httpd/conf.d/ssl.conf
# copy entrypoint script
ENV START_SCRIPT /root/start.sh
COPY bin/start.sh $START_SCRIPT
RUN chmod +x $START_SCRIPT
CMD ["/root/start.sh"]