Fix Docker build workspace dependency issue

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-17 02:08:21 +00:00
parent b530a0fed5
commit 95f5f2f7ce

View File

@@ -2,13 +2,14 @@ FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
# Install all dependencies (including devDependencies needed for build)
RUN npm ci
# Copy all files including workspace packages to support npm workspaces
COPY . .
# Install dependencies
# Note: npm ci doesn't work with workspace: protocol, so we use npm install
RUN npm install
# Build the application
RUN npm run build
FROM nginx:alpine AS runtime