fix: migrate container agent-runner to pnpm with proper build scripts

- Remove package-lock.json, add pnpm-lock.yaml for frozen installs
- Add pnpm-workspace.yaml with onlyBuiltDependencies (better-sqlite3)
  and minimumReleaseAge matching root project policy
- Dockerfile: allow agent-browser build scripts via global .npmrc
  (global installs don't read project-level workspace config)
- Dockerfile: make lockfile and workspace COPY mandatory (drop glob)
This commit is contained in:
meeech
2026-04-14 12:33:59 -04:00
committed by gavrielc
parent 994b323cfa
commit 44e2361293
4 changed files with 1318 additions and 2019 deletions

View File

@@ -35,14 +35,15 @@ ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
# Install agent-browser and claude-code globally
RUN pnpm install -g agent-browser @anthropic-ai/claude-code vercel
# Allow agent-browser build scripts for global install, then install
RUN echo "only-built-dependencies[]=agent-browser" > /root/.npmrc && \
pnpm install -g agent-browser @anthropic-ai/claude-code vercel
# Create app directory
WORKDIR /app
# Copy package files first for better caching
COPY agent-runner/package.json agent-runner/pnpm-lock.yaml* ./
COPY agent-runner/package.json agent-runner/pnpm-lock.yaml agent-runner/pnpm-workspace.yaml ./
# Install dependencies
RUN pnpm install --frozen-lockfile

File diff suppressed because it is too large Load Diff

1309
container/agent-runner/pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,5 @@
onlyBuiltDependencies:
- better-sqlite3
pnpm:
minimumReleaseAge: 4320