Add cron job
This commit is contained in:
parent
8faa85ef9e
commit
910faff3e5
1 changed files with 3 additions and 3 deletions
|
@ -29,10 +29,10 @@ RUN apt-get update \
|
||||||
# && echo "apc.enable=1" >> /usr/local/etc/php/glenux-apcu.ini \
|
# && echo "apc.enable=1" >> /usr/local/etc/php/glenux-apcu.ini \
|
||||||
# && docker-php-ext-enable apcu
|
# && docker-php-ext-enable apcu
|
||||||
|
|
||||||
# apt-get install -q -y cron && \
|
RUN apt-get install -q -y cron \
|
||||||
# apt-get clean
|
&& 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
|
# CMD cron && apache2-foreground
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue