-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
42 lines (34 loc) · 1.11 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
FROM centos:centos6
MAINTAINER alessandro.minoccheri@studiomado.it
RUN yum -y update
RUN yum install -y epel-release
RUN rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
RUN rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
RUN rpm -Uvh http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm
RUN yum install -y php71w \
php71w-xml \
php71w-mbstring \
php71w-json \
php71w-gd \
php71w-mcrypt \
php71w-fpm \
php71w-pdo \
php71w-opcache \
php71w-soap \
php71w-xmlrpc \
php71w-simplexml \
php71w-curl \
php71w-mysqlnd \
php71w-pecl-imagick \
mysql
RUN cd /tmp && curl -sS https://getcomposer.org/installer | php && mv composer.phar /usr/local/bin/composer
RUN touch /var/log/www.access.log
RUN sed -e 's/127.0.0.1:9000/0.0.0.0:9000/' \
-e '/allowed_clients/d' \
-e '/catch_workers_output/s/^;//' \
-e '/error_log/d' \
-e 's/;access.log = /access.log = \/var\//' \
-e 's/;security.limit_extensions = .php .php3 .php4 .php5 .php7/security.limit_extensions = .php .php3 .php4 .php5 .php7/' \
-i /etc/php-fpm.d/www.conf
EXPOSE 9000
CMD ["php-fpm", "-F"]