Raise memory limit for cron too

This commit is contained in:
Glenn Y. Rolland 2021-03-27 17:17:19 +01:00
parent 5fc3b30937
commit 2f13802258

View file

@ -39,7 +39,10 @@ RUN apt-get update \
## Raise memory limit for PHP
##
ENV PHP_MEMORY_LIMIT=1024M
RUN echo "memory_limit=1024M" > /usr/local/etc/php/conf.d/memory-limit.ini
RUN echo 'memory_limit=1024M' \
> /usr/local/etc/php/conf.d/memory-limit.ini \
&& echo '*/5 * * * * php -d memory_limit=1024M -f /var/www/html/cron.php' \
> /var/spool/cron/crontabs/www-data
##
## CRON SETUP
@ -50,9 +53,9 @@ RUN apt-get update && apt-get install -y \
supervisor \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir /var/log/supervisord /var/run/supervisord
COPY supervisord.conf /etc/supervisord.conf
##
## GMP Support (for bookmark extension)
##