-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (24 loc) · 902 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
# lemp-centos
#
# This image prived a base for
FROM jmashburn/lemp-centos
ENV IMAGE_TAGS=web,nginx
ENV IMAGE_WANTS=mysql
ENV IMAGE_DESCRIPTION="Retext Web Application"
ENV IMAGE_EXPOSE_SERVICES="80/http,3306/tcp:mysql"
ADD docker/nginx.conf /etc/nginx/nginx.conf
ADD docker/default.conf /etc/nginx/conf.d/default.conf
#ADD docker/my.cnf /etc/mysql/my.cnf
#RUN rm -rf /var/lib/mysql/*
#ADD docker/mysql_user.sh /mysql_user.sh
ADD docker/run.sh /run.sh
RUN chmod 755 /*.sh
RUN git clone https://github.com/jmashburn/retext.git /tmp/retext && mv /tmp/retext/* /var/www/ && rm -rf /tmp/retext
#RUN /etc/init.d/mysqld start
RUN /etc/init.d/php-fpm start
ADD docker/supervisord.conf /etc/
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN chmod 777 /var/lib/php/session
RUn chown apache.apache -R /var/www/var
EXPOSE 80
CMD ["/run.sh"]