Raise memory limit for cron too
This commit is contained in:
parent
5fc3b30937
commit
2f13802258
1 changed files with 5 additions and 2 deletions
|
@ -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)
|
||||
##
|
||||
|
|
Loading…
Reference in a new issue