0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-03-25 15:36:10 +01:00
nextcloud-docker/.examples/dockerfiles/cron/fpm/Dockerfile
kendokan 185d10886e Cron needs a blank line at the end of the cronfile
The cron job wouldn't fire as scheduled until I added a blank line to the end.
2017-10-24 13:36:04 -07:00

13 lines
366 B
Docker

FROM nextcloud:fpm
RUN apt-get update && apt-get install -y \
supervisor \
cron \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir /var/log/supervisord /var/run/supervisord && \
printf "*/15 * * * * su - www-data -s /bin/bash -c \"php -f /var/www/html/cron.php\"\n"| crontab -
COPY supervisord.conf /etc/supervisor/supervisord.conf
CMD ["/usr/bin/supervisord"]