feat(Docker): Add Wayfinder route generation and update asset build process

This commit is contained in:
Víctor Falcón 2025-11-24 16:58:51 +01:00
parent 1bc4028992
commit a13e7fd538
1 changed files with 7 additions and 2 deletions

View File

@ -49,9 +49,14 @@ RUN mkdir -p /var/log/nginx && mkdir -p /var/cache/nginx
# Install PHP dependencies
RUN composer install --no-dev --optimize-autoloader
# Install Node.js dependencies and build assets
# Install Node.js dependencies
RUN bun install --frozen-lockfile
RUN bun run build
# Generate Wayfinder routes before building
RUN php artisan wayfinder:generate
# Build assets
RUN bun run build:ssr
# Copy supervisor configuration
COPY docker/supervisor/supervisord.conf /etc/supervisor/conf.d/supervisord.conf