Raise memory limit & enable cron
This commit is contained in:
parent
910faff3e5
commit
be924f9cb3
1 changed files with 5 additions and 1 deletions
|
@ -32,9 +32,13 @@ RUN apt-get update \
|
||||||
RUN apt-get install -q -y cron \
|
RUN apt-get install -q -y cron \
|
||||||
&& apt-get clean
|
&& apt-get clean
|
||||||
|
|
||||||
|
# Raise memory limit for PHP
|
||||||
|
RUN echo "memory_limit=1024M" > /usr/local/etc/php/conf.d/memory-limit.ini
|
||||||
|
|
||||||
|
# Add cron task
|
||||||
RUN echo "*/5 * * * * root su -l www-data -s /bin/bash -c 'php -d memory_limit=1024M -f /var/www/html/cron.php' > /dev/null 2>&1" >> /etc/crontab
|
RUN echo "*/5 * * * * root su -l www-data -s /bin/bash -c 'php -d memory_limit=1024M -f /var/www/html/cron.php' > /dev/null 2>&1" >> /etc/crontab
|
||||||
|
|
||||||
# CMD cron && apache2-foreground
|
CMD cron && apache2-foreground
|
||||||
|
|
||||||
# Mandatory for bookmark extension
|
# Mandatory for bookmark extension
|
||||||
# but missing from deb packages
|
# but missing from deb packages
|
||||||
|
|
Loading…
Add table
Reference in a new issue