[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:
co-authored by
Simon Mo
mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent
7314360c9e
commit
76d3929916
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user