From be924f9cb36d62d61ea80311fc3d744caf754332 Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Sat, 27 Mar 2021 13:47:31 +0100 Subject: [PATCH] Raise memory limit & enable cron --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a57b715..078ca7f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,9 +32,13 @@ RUN apt-get update \ RUN apt-get install -q -y cron \ && 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 -# CMD cron && apache2-foreground +CMD cron && apache2-foreground # Mandatory for bookmark extension # but missing from deb packages