From b530a0fed566e587aa9c0e461949f39ed5abcf3a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 17 Jan 2026 01:05:53 +0000 Subject: [PATCH 1/3] Initial plan From 95f5f2f7ced8d8cb673973b1ad53c0e29a5ebd19 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 17 Jan 2026 02:08:21 +0000 Subject: [PATCH 2/3] Fix Docker build workspace dependency issue Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com> --- Dockerfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 35bea8a..1423579 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 From 9bc215d46673a1d550b6f0ffc38106d145e3d555 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 17 Jan 2026 02:09:21 +0000 Subject: [PATCH 3/3] Optimize Docker layer caching while fixing workspace issue Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com> --- Dockerfile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1423579..aff106b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,13 +2,18 @@ FROM node:20-alpine AS builder WORKDIR /app -# Copy all files including workspace packages to support npm workspaces -COPY . . +# Copy package files and workspace packages for dependency installation +COPY package*.json ./ +COPY packages/spark/package.json ./packages/spark/package.json +COPY packages/spark/src ./packages/spark/src # Install dependencies -# Note: npm ci doesn't work with workspace: protocol, so we use npm install +# Note: npm ci doesn't work reliably with workspace: protocol, so we use npm install RUN npm install +# Copy remaining application files +COPY . . + # Build the application RUN npm run build