mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-12 18:02:34 +00:00
Add cron job to docker file.
This commit is contained in:
@@ -19,6 +19,10 @@ VOLUME $FIREFLY_PATH/storage/export $FIREFLY_PATH/storage/upload
|
|||||||
# Make sure we own Firefly III directory
|
# Make sure we own Firefly III directory
|
||||||
RUN chown -R www-data:www-data /var/www && chmod -R 775 $FIREFLY_PATH/storage
|
RUN chown -R www-data:www-data /var/www && chmod -R 775 $FIREFLY_PATH/storage
|
||||||
|
|
||||||
|
# Add cron job
|
||||||
|
RUN docker-service enable cron
|
||||||
|
RUN docker-cronjob '* * * * * application cd /app/ && php artisan schedule:run'
|
||||||
|
|
||||||
# Run composer
|
# Run composer
|
||||||
ENV COMPOSER_ALLOW_SUPERUSER 1
|
ENV COMPOSER_ALLOW_SUPERUSER 1
|
||||||
RUN composer install --prefer-dist --no-dev --no-scripts --no-suggest
|
RUN composer install --prefer-dist --no-dev --no-scripts --no-suggest
|
||||||
|
|||||||
Reference in New Issue
Block a user