diff --git a/Dockerfile b/Dockerfile index 5b6d150..311078e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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