Disable cron since it is included by default now
This commit is contained in:
parent
be924f9cb3
commit
966300ef65
1 changed files with 6 additions and 6 deletions
12
Dockerfile
12
Dockerfile
|
@ -29,16 +29,16 @@ RUN apt-get update \
|
|||
# && echo "apc.enable=1" >> /usr/local/etc/php/glenux-apcu.ini \
|
||||
# && docker-php-ext-enable apcu
|
||||
|
||||
RUN apt-get install -q -y cron \
|
||||
&& apt-get clean
|
||||
## DO NOT install cron since it is included by default now
|
||||
## ref: https://github.com/nextcloud/docker/blob/master/21.0/apache/Dockerfile
|
||||
# RUN apt-get install -q -y cron \
|
||||
# && apt-get clean \
|
||||
# && 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
|
||||
|
||||
# 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
|
||||
|
|
Loading…
Reference in a new issue