infra: builder image stubs the agentd workspace member
- Commit
591cee3c24324aadce3dfb569c2ccd2ef161088f- Author
- Vayun Mathur <[email protected]>
- When
- 2026-11-05 01:40 UTC (1 month ago)
- Parents
b331aa2
cargo resolves every workspace member even with -p, so the runner build stage failed reading agentd/Cargo.toml. Copy only the manifest and an empty main; agentd itself is built by Dockerfile.agentd.
Diff
infra/agents/Dockerfile.builder
diff --git a/infra/agents/Dockerfile.builder b/infra/agents/Dockerfile.builderindex 128dec2b2b..2241a018f9 100644--- a/infra/agents/Dockerfile.builder+++ b/infra/agents/Dockerfile.builder@@ -34,8 +34,10 @@ WORKDIR /src COPY Cargo.toml Cargo.lock ./ COPY proto ./proto COPY runner ./runner-# agentd has its own Dockerfile (another agent owns it); exclude it from this-# build so this image never depends on that crate.+# agentd has its own Dockerfile; only its manifest is needed here (plus an+# empty main) so the workspace resolves without compiling it.+COPY agentd/Cargo.toml ./agentd/Cargo.toml+RUN mkdir -p agentd/src && echo 'fn main() {}' > agentd/src/main.rs RUN cargo build -p agent-runner --release --locked # ---- stage 2: sandbox -------------------------------------------------------