Skip to content

Commit 4b5f976

Browse files
committed
fix(showcase): split COPY into two explicit lines + probe to diagnose CI failure
Glob form 'COPY package*.json ./' didn't fix CI -- only package.json ended up in /app, despite the build context transferring 1.38 MB (lockfile is 705 KB so it's clearly in the source). This commit: 1. Splits the COPY into two unambiguous lines. 2. Adds a 'RUN ls -la /app/' probe before npm ci. If the probe shows package-lock.json present in /app, the issue is in npm ci discovery. If absent, the issue is in build context upload. Probe to be reverted once root cause is known.
1 parent 8ebd7df commit 4b5f976

18 files changed

Lines changed: 54 additions & 18 deletions

File tree

showcase/integrations/ag2/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
# Cache bust: 2026-04-07 smoke route
33
FROM node:22-slim AS frontend
44
WORKDIR /app
5-
COPY package*.json ./
5+
COPY package.json ./
6+
COPY package-lock.json ./
7+
RUN ls -la /app/ && echo "--lockfile head--" && head -2 /app/package-lock.json
68
RUN npm ci --legacy-peer-deps
79
COPY . .
810
RUN npm run build

showcase/integrations/agno/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# Stage 1: Build Next.js frontend
22
FROM node:22-slim AS frontend
33
WORKDIR /app
4-
COPY package*.json ./
4+
COPY package.json ./
5+
COPY package-lock.json ./
6+
RUN ls -la /app/ && echo "--lockfile head--" && head -2 /app/package-lock.json
57
RUN npm ci --legacy-peer-deps
68
COPY . .
79
RUN npm run build

showcase/integrations/built-in-agent/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
# Stage 1: Build Next.js
88
FROM node:22-slim AS builder
99
WORKDIR /app
10-
COPY package*.json ./
10+
COPY package.json ./
11+
COPY package-lock.json ./
12+
RUN ls -la /app/ && echo "--lockfile head--" && head -2 /app/package-lock.json
1113
RUN npm ci --legacy-peer-deps
1214
COPY . .
1315
RUN npx next build

showcase/integrations/claude-sdk-python/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# Stage 1: Build Next.js frontend
22
FROM node:22-slim AS frontend
33
WORKDIR /app
4-
COPY package*.json ./
4+
COPY package.json ./
5+
COPY package-lock.json ./
6+
RUN ls -la /app/ && echo "--lockfile head--" && head -2 /app/package-lock.json
57
RUN npm ci --legacy-peer-deps
68
COPY . .
79
RUN npm run build

showcase/integrations/claude-sdk-typescript/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# Stage 1: Build Next.js frontend + compile TypeScript agent server
22
FROM node:22-slim AS builder
33
WORKDIR /app
4-
COPY package*.json ./
4+
COPY package.json ./
5+
COPY package-lock.json ./
6+
RUN ls -la /app/ && echo "--lockfile head--" && head -2 /app/package-lock.json
57
RUN npm ci --legacy-peer-deps
68
COPY . .
79
# Build Next.js frontend

showcase/integrations/crewai-crews/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# Stage 1: Build Next.js frontend
22
FROM node:22-slim AS frontend
33
WORKDIR /app
4-
COPY package*.json ./
4+
COPY package.json ./
5+
COPY package-lock.json ./
6+
RUN ls -la /app/ && echo "--lockfile head--" && head -2 /app/package-lock.json
57
RUN npm ci --legacy-peer-deps
68
COPY . .
79
RUN npm run build

showcase/integrations/google-adk/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# Stage 1: Build Next.js frontend
22
FROM node:22-slim AS frontend
33
WORKDIR /app
4-
COPY package*.json ./
4+
COPY package.json ./
5+
COPY package-lock.json ./
6+
RUN ls -la /app/ && echo "--lockfile head--" && head -2 /app/package-lock.json
57
RUN npm ci --legacy-peer-deps
68
COPY . .
79
RUN npm run build

showcase/integrations/langgraph-fastapi/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# Stage 1: Build Next.js frontend
22
FROM node:22-slim AS frontend
33
WORKDIR /app
4-
COPY package*.json ./
4+
COPY package.json ./
5+
COPY package-lock.json ./
6+
RUN ls -la /app/ && echo "--lockfile head--" && head -2 /app/package-lock.json
57
RUN npm ci --legacy-peer-deps
68
COPY . .
79
RUN npm run build

showcase/integrations/langgraph-python/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# Stage 1: Build Next.js frontend
22
FROM node:22-slim AS frontend
33
WORKDIR /app
4-
COPY package*.json ./
4+
COPY package.json ./
5+
COPY package-lock.json ./
6+
RUN ls -la /app/ && echo "--lockfile head--" && head -2 /app/package-lock.json
57
RUN npm ci --legacy-peer-deps
68
COPY . .
79
RUN npm run build

showcase/integrations/langgraph-typescript/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# Stage 1: Build Next.js frontend
22
FROM node:22-slim AS frontend
33
WORKDIR /app
4-
COPY package*.json ./
4+
COPY package.json ./
5+
COPY package-lock.json ./
6+
RUN ls -la /app/ && echo "--lockfile head--" && head -2 /app/package-lock.json
57
RUN npm ci --legacy-peer-deps
68
COPY . .
79
RUN npx next build

0 commit comments

Comments
 (0)