mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-15 04:03:31 +00:00
fix: fix UI Docker builds for pnpm v10 and missing cli-shared dep
This commit is contained in:
parent
76b56b0c15
commit
6fc97cc76d
3 changed files with 8 additions and 3 deletions
|
|
@ -4,7 +4,7 @@ dist/
|
|||
build/
|
||||
|
||||
# Dependencies
|
||||
node_modules/
|
||||
**/node_modules/
|
||||
|
||||
# Cache
|
||||
.cache/
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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 ./
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue