]>
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' |
5 | ||
540ef5e0 | 6 | RUN apt-get update && apt-get install -y \ |
2a61e13f JB |
7 | libmcrypt-dev \ |
8 | libicu-dev \ | |
9 | libpq-dev \ | |
10 | libxml2-dev \ | |
11 | libpng-dev \ | |
12 | libjpeg-dev \ | |
13 | libsqlite3-dev \ | |
14 | imagemagick \ | |
15 | libmagickwand-dev | |
16 | RUN docker-php-ext-install \ | |
17 | iconv \ | |
18 | mbstring \ | |
19 | intl \ | |
20 | pdo \ | |
21 | pdo_mysql \ | |
22 | pdo_pgsql \ | |
23 | pdo_sqlite | |
24 | ||
25 | RUN printf "\n" | pecl install imagick && docker-php-ext-enable imagick | |
540ef5e0 | 26 | |
612f5f1e | 27 | RUN echo "date.timezone="$timezone > /usr/local/etc/php/conf.d/date_timezone.ini |
12546034 | 28 | |
540ef5e0 FM |
29 | RUN usermod -u 1000 www-data |
30 | ||
31 | CMD ["php-fpm"] |