fix(docker): install workspace deps for apps/web (npm ci --workspace=apps/web) so vite is available during build
This commit is contained in:
+5
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user