From 7cb7f6291e8802f995cc51ceb25c7adf07e27509 Mon Sep 17 00:00:00 2001 From: Yujong Lee Date: Mon, 14 Sep 2026 22:38:23 +0000 Subject: [PATCH] fix(docker): restore root Cargo manifest and lockfile after cargo chef cook Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- litellm-rust/crates/ai-gateway/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/litellm-rust/crates/ai-gateway/Dockerfile b/litellm-rust/crates/ai-gateway/Dockerfile index 729667d3274..f73ac499565 100644 --- a/litellm-rust/crates/ai-gateway/Dockerfile +++ b/litellm-rust/crates/ai-gateway/Dockerfile @@ -43,7 +43,9 @@ RUN cargo chef cook --locked --release \ -p litellm-ai-gateway --features server,python-config \ --recipe-path recipe.json # Now copy the real sources and build the gateway binary. Deps are already cooked -# above, so this step only recompiles the gateway crate. +# above, so this step only recompiles the gateway crate. The root manifest and +# lockfile are re-copied because cook leaves its skeleton versions in place. +COPY Cargo.toml Cargo.lock /build/ COPY litellm-rust/ /build/litellm-rust/ RUN cargo build --locked --release -p litellm-ai-gateway --bin litellm-ai-gateway --features server,python-config