Fix: Add Node.js build step to Dockerfile for Vite assets
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 3m1s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 3m1s
This commit is contained in:
@@ -31,6 +31,13 @@ RUN mkdir -p storage/framework/sessions \
|
||||
# 4. Instalação do PHP
|
||||
RUN composer install --no-dev --no-interaction --prefer-dist --optimize-autoloader
|
||||
|
||||
# 4.1. Instalação do Node.js e Build dos Assets
|
||||
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
|
||||
&& apt-get install -y nodejs \
|
||||
&& npm install \
|
||||
&& npm run build \
|
||||
&& rm -rf node_modules
|
||||
|
||||
# 5. Script de Entrada
|
||||
COPY docker-entrypoint.sh /usr/local/bin/
|
||||
# Garante quebras de linha Linux
|
||||
|
||||
Reference in New Issue
Block a user