Added cron job to firefly
This commit is contained in:
parent
e8e0fb71dd
commit
ff6f93640f
4 changed files with 30 additions and 20 deletions
9
firefly/Dockerfile
Normal file
9
firefly/Dockerfile
Normal 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
|
||||
Reference in a new issue