[Build] Propagate vLLM version to Rust binaries (#52593)

Signed-off-by: Bugen Zhao <i@bugenzhao.com>
Co-authored-by: Nick Hill <nickhill123@gmail.com>
Co-authored-by: Andreas Karatzas <akaratza@amd.com>
This commit is contained in:
Bugen Zhao
2026-08-17 23:37:37 -07:00
committed by GitHub
co-authored by Nick Hill Andreas Karatzas
parent b0e9cff5e7
commit c89d692cb5
24 changed files with 135 additions and 39 deletions
+5
View File
@@ -28,8 +28,13 @@ COPY build_rust.sh build_rust.sh
# (rustc spawns enough concurrent processes to hit RLIMIT_NOFILE otherwise).
ENV CARGO_BUILD_JOBS=4
# Only Rust inputs are present, so suppress the artificial dirty state caused
# by other tracked files being absent from this build stage.
ENV SETUPTOOLS_SCM_PRETEND_METADATA={dirty=false}
RUN --mount=type=cache,target=/root/.cargo/registry,sharing=locked \
--mount=type=cache,target=/root/.cargo/git,sharing=locked \
--mount=type=bind,source=.git,target=.git \
bash build_rust.sh
FROM ubuntu:24.04 AS vllm-base