-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDocker
25 lines (23 loc) · 855 Bytes
/
Docker
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
FROM centos:6.9
LABEL maintainer [email protected]
#RUN yum install update -y
RUN yum install httpd wget zip unzip php php-mysql php-mbstring php-mcrypt curl pip soap php-devel cakephp -y
# MYSQL
RUN yum install -y mysql mysql-server
RUN service mysqld start
RUN mkdir -p /tmp/softwares
WORKDIR /var/www/html
RUN wget http://x.x.x.x/ddd.zip && unzip ddd.zip
RUN wget http://x.x.x.x/mmmmm.zip && unzip mmmmm.zip
RUN chgrp apache -R ddd
RUN chgrp apache -R mmmmm
WORKDIR /var/lib/mysql
RUN wget http://x.x.x.x/ccccc_test.zip && unzip ccccc_test.zip
RUN wget http://x.x.x.x/eeeeee_db.zip && unzip eeeeee_db.zip
RUN chgrp mysql -R ccccc_test
RUN chgrp mysql -R eeeeee_db
CMD service mysqld start
COPY /root/script.sh /script.sh
RUN chmod -x script.sh
ENTRYPOINT ["/usr/sbin/apachectl", "-D", "FOREGROUND", ./script.sh]
EXPOSE 80