feat(Docker): Optimize build process by removing unnecessary steps and adjusting environment variables

This commit is contained in:
Víctor Falcón 2025-11-24 18:53:24 +01:00
parent a13e7fd538
commit 732775e47e
1 changed files with 3 additions and 5 deletions

View File

@ -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