-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
39 lines (33 loc) · 896 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
FROM ubuntu:17.10
RUN apt-get update && apt-get install -my \
curl \
wget \
php-curl \
php-fpm \
php-gd \
php-xsl \
php-mysqlnd \
php-mcrypt \
php-cli \
php-intl \
php-bz2 \
php-zip \
php-xdebug \
php-mbstring \
git \
zip \
php-apcu \
php-opcache
RUN mkdir /run/php
ADD conf/www.conf /etc/php/7.1/fpm/pool.d/www.conf
ADD conf/memory.ini /etc/php/7.1/fpm/conf.d/memory.ini
ADD conf/upload_max_filesize.ini /etc/php/7.1/fpm/conf.d/upload_max_filesize.ini
ADD conf/opcache.ini /etc/php/7.1/mods-available/10-opcache.ini
ADD conf/apcu.ini /etc/php/7.1/mods-available/20-apcu.ini
ADD conf/apcu.ini /etc/php/7.1/mods-available/20-apcu_bc.ini
ADD conf/php-fpm.conf /etc/php/7.1/fpm/php-fpm.conf
RUN curl -sS https://getcomposer.org/installer | php
RUN mv composer.phar /usr/local/bin/composer
RUN chmod +x /usr/local/bin/composer
EXPOSE 9000
CMD ["php-fpm7.1"]