diff options
author | Jérémy Benoist <j0k3r@users.noreply.github.com> | 2019-11-12 13:58:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-12 13:58:13 +0100 |
commit | 8d8d6818fb6b6bc2f4140285a2a53c74e38bc010 (patch) | |
tree | e850dad93de2c28ea246fc68a0870b0a6b131e8e /docker/php | |
parent | 638f799af38544ae2d2de9f9e402865f4d907001 (diff) | |
parent | 64885da458d6c3a57883393f3d924c1a7c245284 (diff) | |
download | wallabag-8d8d6818fb6b6bc2f4140285a2a53c74e38bc010.tar.gz wallabag-8d8d6818fb6b6bc2f4140285a2a53c74e38bc010.tar.zst wallabag-8d8d6818fb6b6bc2f4140285a2a53c74e38bc010.zip |
Merge pull request #4163 from aaa2000/docker-increase-php-memory-limit
Increase php memory limit PHP Docker
Diffstat (limited to 'docker/php')
-rw-r--r-- | docker/php/Dockerfile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docker/php/Dockerfile b/docker/php/Dockerfile index c43e07fd..171e12fc 100644 --- a/docker/php/Dockerfile +++ b/docker/php/Dockerfile | |||
@@ -2,6 +2,7 @@ FROM 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 |
4 | ARG timezone='Europe/Paris' | 4 | ARG timezone='Europe/Paris' |
5 | ARG memorylimit='512M' | ||
5 | 6 | ||
6 | RUN apt-get update && apt-get install -y \ | 7 | RUN apt-get update && apt-get install -y \ |
7 | libmcrypt-dev \ | 8 | libmcrypt-dev \ |
@@ -32,6 +33,7 @@ RUN docker-php-ext-install \ | |||
32 | RUN printf "\n" | pecl install imagick && docker-php-ext-enable imagick | 33 | RUN printf "\n" | pecl install imagick && docker-php-ext-enable imagick |
33 | 34 | ||
34 | RUN echo "date.timezone="$timezone > /usr/local/etc/php/conf.d/date_timezone.ini | 35 | RUN echo "date.timezone="$timezone > /usr/local/etc/php/conf.d/date_timezone.ini |
36 | RUN echo "memory_limit ="$memorylimit > /usr/local/etc/php/conf.d/memory_limit.ini | ||
35 | 37 | ||
36 | RUN usermod -u 1000 www-data | 38 | RUN usermod -u 1000 www-data |
37 | 39 | ||