Added cron job to firefly

This commit is contained in:
Jef Roosens 2021-01-11 09:48:47 +01:00
parent e8e0fb71dd
commit ff6f93640f
4 changed files with 30 additions and 20 deletions

9
firefly/Dockerfile Normal file
View file

@ -0,0 +1,9 @@
FROM jc5x/firefly-iii:latest
# Install cron & crontab
RUN apt update && \
apt install --no-install-recommends -y cron && \
echo "0 */4 * * * /usr/bin/php /var/www/html/artisan firefly-iii:cron" | crontab
# Run cron on startup
ENTRYPOINT cron && /usr/local/bin/entrypoint.sh