From 732775e47ef92f01f0449b2cad1e337627bd5a4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vi=CC=81ctor=20Falco=CC=81n?= Date: Mon, 24 Nov 2025 18:53:24 +0100 Subject: [PATCH] feat(Docker): Optimize build process by removing unnecessary steps and adjusting environment variables --- Dockerfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index f6fb1d13..01702b25 100644 --- a/Dockerfile +++ b/Dockerfile @@ -52,11 +52,9 @@ RUN composer install --no-dev --optimize-autoloader # Install Node.js dependencies RUN bun install --frozen-lockfile -# Generate Wayfinder routes before building -RUN php artisan wayfinder:generate - -# Build assets -RUN bun run build:ssr +# Build assets with HIDE_AUTH_BUTTONS=false so Wayfinder generates all routes +# (HIDE_AUTH_BUTTONS will be set to true at runtime via .env) +RUN HIDE_AUTH_BUTTONS=false bun run build:ssr # Copy supervisor configuration COPY docker/supervisor/supervisord.conf /etc/supervisor/conf.d/supervisord.conf