]> git.immae.eu Git - github/wallabag/wallabag.git/blame - docker/php/Dockerfile
Merge pull request #4438 from wallabag/dependabot/composer/scheb/two-factor-bundle...
[github/wallabag/wallabag.git] / docker / php / Dockerfile
CommitLineData
c1a1c46e 1FROM php:7.2-fpm
540ef5e0 2
b80841f2 3# Default timezone. To change it, use the argument in the docker-compose.yml file
612f5f1e 4ARG timezone='Europe/Paris'
64885da4 5ARG memorylimit='512M'
612f5f1e 6
540ef5e0 7RUN 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
19RUN 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
33RUN printf "\n" | pecl install imagick && docker-php-ext-enable imagick
540ef5e0 34
612f5f1e 35RUN echo "date.timezone="$timezone > /usr/local/etc/php/conf.d/date_timezone.ini
64885da4 36RUN echo "memory_limit ="$memorylimit > /usr/local/etc/php/conf.d/memory_limit.ini
12546034 37
540ef5e0
FM
38RUN usermod -u 1000 www-data
39
40CMD ["php-fpm"]