From 2a0653981c94e795362a1249a6a6cf7da5408575 Mon Sep 17 00:00:00 2001 From: myrmidex Date: Sat, 7 Mar 2026 00:57:47 +0100 Subject: [PATCH] 40 - Run seeders on build --- Dockerfile | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2716112..9fd071d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,7 @@ ENV APP_ENV=production \ CACHE_STORE=redis \ QUEUE_CONNECTION=redis \ LOG_CHANNEL=stack \ - LOG_LEVEL=error + LOG_LEVEL=${LOG_LEVEL:-error} # Copy application code first COPY . . @@ -31,11 +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 \ - && php artisan route:cache \ - && php artisan view:cache \ +# Publish Livewire assets +RUN php artisan livewire:publish --assets + +# Laravel optimizations (skip config and route cache - they need runtime env vars) +RUN php artisan view:cache \ && composer dump-autoload --optimize # Set permissions @@ -51,13 +51,9 @@ RUN cat > /etc/caddy/Caddyfile <