aboutsummaryrefslogtreecommitdiffhomepage
path: root/docker/php/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'docker/php/Dockerfile')
-rw-r--r--docker/php/Dockerfile34
1 files changed, 29 insertions, 5 deletions
diff --git a/docker/php/Dockerfile b/docker/php/Dockerfile
index d0266ec7..171e12fc 100644
--- a/docker/php/Dockerfile
+++ b/docker/php/Dockerfile
@@ -1,15 +1,39 @@
1FROM php:fpm 1FROM php:7.2-fpm
2 2
3# Default timezone. To change it, use the argument in the docker-compose.yml file 3# Default timezone. To change it, use the argument in the docker-compose.yml file
4ARG timezone='Europe/Paris' 4ARG timezone='Europe/Paris'
5ARG memorylimit='512M'
5 6
6RUN apt-get update && apt-get install -y \ 7RUN apt-get update && apt-get install -y \
7 libmcrypt-dev libicu-dev libpq-dev libxml2-dev libpng-dev libjpeg-dev \ 8 libmcrypt-dev \
8 && /usr/local/bin/docker-php-ext-configure gd --with-jpeg-dir=/usr/include \ 9 libicu-dev \
9 && docker-php-ext-install \ 10 libpq-dev \
10 iconv mbstring intl pdo pdo_mysql pdo_pgsql gd 11 libxml2-dev \
12 libpng-dev \
13 libjpeg-dev \
14 libsqlite3-dev \
15 imagemagick \
16 libmagickwand-dev \
17 libtidy-dev \
18 git
19RUN docker-php-ext-install \
20 iconv \
21 mbstring \
22 gd \
23 intl \
24 pdo \
25 pdo_mysql \
26 pdo_pgsql \
27 pdo_sqlite \
28 sockets \
29 tidy \
30 bcmath \
31 zip
32
33RUN printf "\n" | pecl install imagick && docker-php-ext-enable imagick
11 34
12RUN echo "date.timezone="$timezone > /usr/local/etc/php/conf.d/date_timezone.ini 35RUN echo "date.timezone="$timezone > /usr/local/etc/php/conf.d/date_timezone.ini
36RUN echo "memory_limit ="$memorylimit > /usr/local/etc/php/conf.d/memory_limit.ini
13 37
14RUN usermod -u 1000 www-data 38RUN usermod -u 1000 www-data
15 39