[Docker] Compile Python bytecode at image build time (#55422)

Signed-off-by: Nils Matteson <nilsmatteson@icloud.com>
Co-authored-by: Simon Mo <simon.mo@hey.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
Nils Matteson
2026-10-01 02:20:17 +00:00
committed by GitHub
co-authored by Simon Mo mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent 7314360c9e
commit 76d3929916
8 changed files with 9 additions and 0 deletions
+1
View File
@@ -205,6 +205,7 @@ RUN --mount=type=cache,target=/root/.cache/uv \
/tmp/ucx_source /tmp/nixl_source
FROM vllm-base AS vllm-openai
ENV UV_COMPILE_BYTECODE=1
# Must match the ucx-nixl-build stage above: ARG does not cross stages, so a stale
# value here installs a meta package that disagrees with the wheel built there.