Add cron job to docker file.

This commit is contained in:
James Cole
2018-08-12 09:34:03 +02:00
parent 67b090b4d8
commit b95ca98be9

View File

@@ -19,6 +19,10 @@ VOLUME $FIREFLY_PATH/storage/export $FIREFLY_PATH/storage/upload
# Make sure we own Firefly III directory
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
ENV COMPOSER_ALLOW_SUPERUSER 1
RUN composer install --prefer-dist --no-dev --no-scripts --no-suggest