Cache when running
All checks were successful
Push image to registry / build-image (push) Successful in 3m46s

This commit is contained in:
2025-02-08 11:16:40 +01:00
parent 77aa2e85c5
commit 1c3c4b1257
2 changed files with 2 additions and 4 deletions

View File

@ -80,10 +80,6 @@ RUN echo "* * * * * cd /usr/app && php artisan schedule:run >> /dev/null 2>&1" >
# Link the storage directory to the public directory.
RUN php artisan storage:link
# Laravel optimization commands
# RUN php artisan cache:clear
RUN php artisan config:clear && php artisan config:cache && php artisan route:cache
RUN chmod +x ./dockerEntryPoint.sh
EXPOSE 80

View File

@ -3,6 +3,8 @@
# Migrate the database
php ./artisan migrate --force
# Cache
php ./artisan optimize:clear && php ./artisan optimize
# Queue worker
php ./artisan queue:work --queue=high,default --tries=3 --timeout=90 --sleep=3 --daemon --no-interaction &