The GitHub broker runs git and gh for agent computers, but the supervisor image is node:bookworm-slim, which has neither. A containerized supervisor therefore failed every broker call. Install both, and when the supervisor runs as root, run git as the workspace owner so clones stay writable by the computer. Claude-Session: https://claude.ai/code/session_01Tgvrj34NMnaqvtgvruYQZZ Co-authored-by: Claude <noreply@anthropic.com>
15 lines
660 B
Docker
15 lines
660 B
Docker
FROM node:22-bookworm-slim
|
|
# The GitHub broker runs git and gh on behalf of computers.
|
|
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates gh git \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
WORKDIR /app
|
|
COPY pnpm-workspace.yaml pnpm-lock.yaml package.json ./
|
|
COPY patches patches
|
|
COPY packages/contracts packages/contracts
|
|
COPY packages/core packages/core
|
|
COPY packages/logging packages/logging
|
|
COPY infra/sandboxes/supervisor infra/sandboxes/supervisor
|
|
RUN corepack enable && pnpm install --frozen-lockfile --prod --filter "@rakazo/sandbox-supervisor..."
|
|
WORKDIR /app/infra/sandboxes/supervisor
|
|
CMD ["pnpm", "exec", "tsx", "src/index.ts"]
|