Fix Dockerfile

This commit is contained in:
Ben van Hartingsveldt 2025-06-27 16:36:20 +02:00
parent 09800ab844
commit 3ab034154c
No known key found for this signature in database
GPG key ID: 261AA214130CE7AB

View file

@ -56,10 +56,7 @@ RUN mv php.ini /usr/local/etc/php/conf.d/
# Setup Opcache # Setup Opcache
RUN mv opcache.ini /usr/local/etc/php/conf.d/ RUN mv opcache.ini /usr/local/etc/php/conf.d/
# Setup CRON
RUN echo -e "*\t*\t*\t*\t*\tcd /var/www/html && php artisan schedule:run >> /dev/null 2>&1" >> /var/spool/cron/crontabs/root
VOLUME /var/www/html/storage/framework/cache/data VOLUME /var/www/html/storage/framework/cache/data
# Cache project and Start PHP-FPM and NGINX # Cache project and Start PHP-FPM and NGINX
CMD php artisan optimize; php artisan event:cache; php artisan view:cache; sh -c "php artisan queue:work &"; n crond; nginx -g "daemon off;" CMD php artisan optimize; php artisan event:cache; php artisan view:cache; sh -c "php artisan queue:work &"; nginx -g "daemon off;"