fix(docker): install workspace deps for apps/web (npm ci --workspace=apps/web) so vite is available during build

This commit is contained in:
Andres Santana
2026-09-25 10:35:51 -04:00
parent f497c2568b
commit 7970fd3f4a
+5 -1
View File
@@ -13,9 +13,13 @@ ENV NODE_ENV=production
# builder platform.
COPY package.json package-lock.json ./
COPY apps/web/package.json apps/web/package.json
# Install root workspace deps (including workspace links)
RUN npm ci --include=optional --no-audit --no-fund
# Ensure the web workspace's dev deps (vite, plugins) are installed too.
# This explicitly installs packages for apps/web so `vite` is available.
RUN npm ci --workspace=apps/web --include=optional --no-audit --no-fund
# Copy source and build the static site
# Copy source (after deps to leverage layer cache) and build the static site
COPY . .
RUN npm run build --workspace apps/web