Fix: Execute Vite build from package directories in Dockerfile
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 2m23s

This resolves the 'Could not resolve entry module' error by ensuring Vite runs
within the context of each package, allowing relative paths in vite.config.js to resolve correctly.
This commit is contained in:
Cauê Faleiros
2026-02-04 11:12:13 -03:00
parent 6846876775
commit cf394b6607

View File

@@ -36,9 +36,9 @@ RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
&& apt-get install -y nodejs \ && apt-get install -y nodejs \
&& npm install \ && npm install \
&& npm run build \ && npm run build \
&& npx vite build --config packages/Webkul/Admin/vite.config.js \ && (cd packages/Webkul/Admin && npx vite build) \
&& npx vite build --config packages/Webkul/Installer/vite.config.js \ && (cd packages/Webkul/Installer && npx vite build) \
&& npx vite build --config packages/Webkul/WebForm/vite.config.js \ && (cd packages/Webkul/WebForm && npx vite build) \
&& rm -rf node_modules && rm -rf node_modules
# 5. Script de Entrada # 5. Script de Entrada