[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
@@ -22,6 +22,7 @@ ENV HOME=/root \
RUSTUP_HOME=/root/.rustup \
UV_CACHE_DIR=$HOME/.cache/uv \
PATH=/root/.cargo/bin:/root/.rustup/bin:${VIRTUAL_ENV}/bin:$PATH
ENV UV_COMPILE_BYTECODE=1
RUN echo "DEBUG: VLLM_VERSION=${VLLM_VERSION}"
RUN --mount=type=cache,target=/var/cache/dnf \