The open-source agent harness - the runtime layer that turns an LLM into a working agent.
Fix container dependency installation.
debajyoti-truefoundrya5bdd36112bd
diff --git a/packages/server/.env.example b/packages/server/.env.exampleindex f9c44d191..7ac6e8eed 100644--- a/packages/server/.env.example+++ b/packages/server/.env.example@@ -35,7 +35,7 @@ MODEL_API_KEY=<your-api-key># every MCP server in mcp.yaml; MCP_{NAME}_HEADERS overrides per server.# Example: MCP server "github" -> MCP_GITHUB_HEADERS# ----------------------------------------------------------------------------# MCP_HEADERS={}+# MCP_HEADERS={"Authorization":"Bearer <mcp-token>"}# MCP_GITHUB_HEADERS={"Authorization":"Bearer <github-mcp-token>"}# ---------------------------------------------------------------------------diff --git a/packages/server/Dockerfile b/packages/server/Dockerfileindex 9622adf44..c0c709bd9 100644--- a/packages/server/Dockerfile+++ b/packages/server/Dockerfile@@ -19,6 +19,10 @@ FROM base AS builderCOPY package.json pnpm-lock.yaml pnpm-workspace.yaml .npmrc tsconfig.base.json ./COPY packages/harness/package.json packages/harness/package.jsonCOPY packages/server/package.json packages/server/package.json+# The root postinstall hook runs build:gen in @truefoundry/utils, which needs+# the generator script and the sandbox Python sources it inlines.+COPY packages/harness/scripts packages/harness/scripts+COPY packages/harness/src/core/sandbox/scripts packages/harness/src/core/sandbox/scriptsRUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfileCOPY packages/harness packages/harnessCOPY packages/server packages/server@@ -31,6 +35,9 @@ FROM base AS prod-depsCOPY package.json pnpm-lock.yaml pnpm-workspace.yaml .npmrc ./COPY packages/harness/package.json packages/harness/package.jsonCOPY packages/server/package.json packages/server/package.json+# Same as builder: the root postinstall hook needs the build:gen inputs.+COPY packages/harness/scripts packages/harness/scripts+COPY packages/harness/src/core/sandbox/scripts packages/harness/src/core/sandbox/scriptsRUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile --prod# ---------------------------------------------------------------------------