diff --git a/Dockerfile b/Dockerfile index 2716112..77341e8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,9 +31,11 @@ RUN npm run build # Remove node_modules after build to save space RUN rm -rf node_modules -# Publish Livewire assets and Laravel optimizations -RUN php artisan livewire:publish --assets \ - && php artisan config:cache \ +# Publish Livewire assets +RUN php artisan livewire:publish --assets + +# Laravel optimizations (config cache first, then routes which may depend on config) +RUN php artisan config:cache \ && php artisan route:cache \ && php artisan view:cache \ && composer dump-autoload --optimize @@ -51,13 +53,9 @@ RUN cat > /etc/caddy/Caddyfile <