Add cron job

This commit is contained in:
Glenn Y. Rolland 2021-03-17 00:56:15 +01:00
parent 8faa85ef9e
commit 910faff3e5
1 changed files with 3 additions and 3 deletions

View File

@ -29,10 +29,10 @@ RUN apt-get update \
# && echo "apc.enable=1" >> /usr/local/etc/php/glenux-apcu.ini \
# && docker-php-ext-enable apcu
# apt-get install -q -y cron && \
# apt-get clean
RUN apt-get install -q -y cron \
&& apt-get clean
# RUN echo "*/15 * * * * root su -l www-data -s /bin/bash -c 'php -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