]>
Commit | Line | Data |
---|---|---|
c1a1c46e | 1 | FROM php:7.2-fpm |
540ef5e0 | 2 | |
b80841f2 | 3 | # Default timezone. To change it, use the argument in the docker-compose.yml file |
612f5f1e | 4 | ARG timezone='Europe/Paris' |
64885da4 | 5 | ARG memorylimit='512M' |
612f5f1e | 6 | |
540ef5e0 | 7 | RUN apt-get update && apt-get install -y \ |
2a61e13f JB |
8 | libmcrypt-dev \ |
9 | libicu-dev \ | |
10 | libpq-dev \ | |
11 | libxml2-dev \ | |
12 | libpng-dev \ | |
13 | libjpeg-dev \ | |
14 | libsqlite3-dev \ | |
15 | imagemagick \ | |
0deec408 | 16 | libmagickwand-dev \ |
2068b445 | 17 | libtidy-dev \ |
18 | git | |
2a61e13f JB |
19 | RUN docker-php-ext-install \ |
20 | iconv \ | |
21 | mbstring \ | |
2068b445 | 22 | gd \ |
2a61e13f JB |
23 | intl \ |
24 | pdo \ | |
25 | pdo_mysql \ | |
26 | pdo_pgsql \ | |
0deec408 | 27 | pdo_sqlite \ |
2068b445 | 28 | sockets \ |
29 | tidy \ | |
30 | bcmath \ | |
31 | zip | |
2a61e13f JB |
32 | |
33 | RUN printf "\n" | pecl install imagick && docker-php-ext-enable imagick | |
540ef5e0 | 34 | |
612f5f1e | 35 | RUN echo "date.timezone="$timezone > /usr/local/etc/php/conf.d/date_timezone.ini |
64885da4 | 36 | RUN echo "memory_limit ="$memorylimit > /usr/local/etc/php/conf.d/memory_limit.ini |
12546034 | 37 | |
540ef5e0 FM |
38 | RUN usermod -u 1000 www-data |
39 | ||
40 | CMD ["php-fpm"] |