mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-17 09:34:48 +00:00
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>
This commit is contained in:
parent
5574855914
commit
7cb7f6291e
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue