[Docker] Cache test dependencies before vLLM install (#51184)

Signed-off-by: mgoin <mgoin64@gmail.com>
Co-authored-by: OpenAI Codex <codex@openai.com>
Co-authored-by: OpenAI Codex <noreply@openai.com>
This commit is contained in:
Michael Goin
2026-08-10 10:34:59 -07:00
committed by GitHub
co-authored by OpenAI Codex OpenAI Codex
parent 355a338b8f
commit 21c667aa64
4 changed files with 61 additions and 6 deletions
@@ -17,6 +17,9 @@ The edges of the build graph represent:
- `RUN --mount=(.\*)from=...` dependencies (with a dotted line and an empty diamond arrow head)
The `test-deps` stage branches from `vllm-runtime-base` so Git and the test
requirements remain cached independently of per-commit vLLM wheels and source.
> <figure markdown="span">
> ![](../../assets/contributing/dockerfile-stages-dependency.png){ align="center" alt="query" width="100%" }
> </figure>
@@ -28,6 +31,7 @@ The edges of the build graph represent:
> ```bash
> dockerfilegraph \
> -o png \
> --concentrate \
> --legend \
> --dpi 200 \
> --max-label-length 50 \
@@ -47,6 +51,7 @@ The edges of the build graph represent:
> --dpi 200 \
> --max-label-length 50 \
> --filename docker/Dockerfile \
> --concentrate \
> --legend
> ```
>