Fix: Execute Vite build from package directories in Dockerfile
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 2m23s
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:
@@ -36,9 +36,9 @@ RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
|
||||
&& apt-get install -y nodejs \
|
||||
&& npm install \
|
||||
&& npm run build \
|
||||
&& npx vite build --config packages/Webkul/Admin/vite.config.js \
|
||||
&& npx vite build --config packages/Webkul/Installer/vite.config.js \
|
||||
&& npx vite build --config packages/Webkul/WebForm/vite.config.js \
|
||||
&& (cd packages/Webkul/Admin && npx vite build) \
|
||||
&& (cd packages/Webkul/Installer && npx vite build) \
|
||||
&& (cd packages/Webkul/WebForm && npx vite build) \
|
||||
&& rm -rf node_modules
|
||||
|
||||
# 5. Script de Entrada
|
||||
|
||||
Reference in New Issue
Block a user