diff options
author | adev <adev2000@gmail.com> | 2019-10-27 19:25:47 +0100 |
---|---|---|
committer | adev <adev2000@gmail.com> | 2019-10-27 19:25:47 +0100 |
commit | 64885da458d6c3a57883393f3d924c1a7c245284 (patch) | |
tree | 5a320a422b4ab2aa9d5893af835b3ed6940fc87f | |
parent | ce4c2ead4bee67d44192e15975b85f7bed28b623 (diff) | |
download | wallabag-64885da458d6c3a57883393f3d924c1a7c245284.tar.gz wallabag-64885da458d6c3a57883393f3d924c1a7c245284.tar.zst wallabag-64885da458d6c3a57883393f3d924c1a7c245284.zip |
Increase php memory limit PHP Docker
-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 ffdf33c9..43e3cc5f 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 \ |
@@ -27,6 +28,7 @@ RUN docker-php-ext-install \ | |||
27 | RUN printf "\n" | pecl install imagick && docker-php-ext-enable imagick | 28 | RUN printf "\n" | pecl install imagick && docker-php-ext-enable imagick |
28 | 29 | ||
29 | RUN echo "date.timezone="$timezone > /usr/local/etc/php/conf.d/date_timezone.ini | 30 | RUN echo "date.timezone="$timezone > /usr/local/etc/php/conf.d/date_timezone.ini |
31 | RUN echo "memory_limit ="$memorylimit > /usr/local/etc/php/conf.d/memory_limit.ini | ||
30 | 32 | ||
31 | RUN usermod -u 1000 www-data | 33 | RUN usermod -u 1000 www-data |
32 | 34 | ||