fix: fix UI Docker builds for pnpm v10 and missing cli-shared dep

This commit is contained in:
Nathan Flurry 2026-02-09 16:33:04 -08:00
parent 76b56b0c15
commit 6fc97cc76d
3 changed files with 8 additions and 3 deletions

View file

@ -4,7 +4,7 @@ dist/
build/
# Dependencies
node_modules/
**/node_modules/
# Cache
.cache/

View file

@ -1,15 +1,20 @@
FROM node:22-alpine AS build
WORKDIR /app
RUN npm install -g pnpm
RUN npm install -g pnpm@9
# Copy package files for all workspaces
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
COPY frontend/packages/inspector/package.json ./frontend/packages/inspector/
COPY sdks/typescript/package.json ./sdks/typescript/
COPY sdks/cli-shared/package.json ./sdks/cli-shared/
# Install dependencies
RUN pnpm install --filter @sandbox-agent/inspector...
# Copy cli-shared source and build it
COPY sdks/cli-shared ./sdks/cli-shared
RUN cd sdks/cli-shared && pnpm exec tsup
# Copy SDK source (with pre-generated types)
COPY sdks/typescript ./sdks/typescript

View file

@ -1,6 +1,6 @@
FROM node:22-alpine AS build
WORKDIR /app
RUN npm install -g pnpm
RUN npm install -g pnpm@9
# Copy website package
COPY frontend/packages/website/package.json ./