fix: correct inspector package name in Dockerfiles and add .dockerignore

- Change @anthropic-ai/sdk-inspector to @sandbox-agent/inspector in all Dockerfiles
- Add .dockerignore to exclude target/, node_modules/, etc from Docker context

The wrong package name caused pnpm install --filter to match nothing, so the
inspector frontend was never built, resulting in binaries without the /ui/ endpoint.
This commit is contained in:
Nathan Flurry 2026-02-01 22:36:42 -08:00
parent afd27652e6
commit a3e55a8976
6 changed files with 31 additions and 5 deletions

26
.dockerignore Normal file
View file

@ -0,0 +1,26 @@
# Build outputs
target/
dist/
build/
# Dependencies
node_modules/
# Cache
.cache/
.turbo/
*.tsbuildinfo
# Environment
.env
.env.*
# IDE
.idea/
.vscode/
# OS
.DS_Store
# Git
.git/

View file

@ -11,7 +11,7 @@ COPY frontend/packages/inspector/package.json ./frontend/packages/inspector/
COPY sdks/typescript/package.json ./sdks/typescript/
# Install dependencies
RUN pnpm install --filter @anthropic-ai/sdk-inspector...
RUN pnpm install --filter @sandbox-agent/inspector...
# Copy SDK source (with pre-generated types from docs/openapi.json)
COPY docs/openapi.json ./docs/

View file

@ -11,7 +11,7 @@ COPY frontend/packages/inspector/package.json ./frontend/packages/inspector/
COPY sdks/typescript/package.json ./sdks/typescript/
# Install dependencies
RUN pnpm install --filter @anthropic-ai/sdk-inspector...
RUN pnpm install --filter @sandbox-agent/inspector...
# Copy SDK source (with pre-generated types from docs/openapi.json)
COPY docs/openapi.json ./docs/

View file

@ -11,7 +11,7 @@ COPY frontend/packages/inspector/package.json ./frontend/packages/inspector/
COPY sdks/typescript/package.json ./sdks/typescript/
# Install dependencies
RUN pnpm install --filter @anthropic-ai/sdk-inspector...
RUN pnpm install --filter @sandbox-agent/inspector...
# Copy SDK source (with pre-generated types from docs/openapi.json)
COPY docs/openapi.json ./docs/

View file

@ -11,7 +11,7 @@ COPY frontend/packages/inspector/package.json ./frontend/packages/inspector/
COPY sdks/typescript/package.json ./sdks/typescript/
# Install dependencies
RUN pnpm install --filter @anthropic-ai/sdk-inspector...
RUN pnpm install --filter @sandbox-agent/inspector...
# Copy SDK source (with pre-generated types from docs/openapi.json)
COPY docs/openapi.json ./docs/

View file

@ -13,7 +13,7 @@ COPY frontend/packages/inspector/package.json ./frontend/packages/inspector/
COPY sdks/typescript/package.json ./sdks/typescript/
# Install dependencies
RUN pnpm install --filter @anthropic-ai/sdk-inspector...
RUN pnpm install --filter @sandbox-agent/inspector...
# Copy SDK source (with pre-generated types from docs/openapi.json)
COPY docs/openapi.json ./docs/