Disable cron & alternate entrypoint

This commit is contained in:
Debian 2019-09-05 13:11:47 +00:00
parent 5b225c9a3c
commit 8e1f71834b

View file

@ -3,11 +3,11 @@
#FROM nextcloud:13.0.12 #FROM nextcloud:13.0.12
FROM nextcloud:14 FROM nextcloud:14
RUN apt-get update && \ #RUN apt-get update && \
apt-get install -q -y cron && \ # 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 "*/15 * * * * root su -l www-data -s /bin/bash -c 'php -f /var/www/html/cron.php' > /dev/null 2>&1" >> /etc/crontab
CMD cron && apache2-foreground # CMD cron && apache2-foreground