Skip to content

Commit

Permalink
[CI/Build] Make the Dockerfile.cpu file's PIP_EXTRA_INDEX_URL Con…
Browse files Browse the repository at this point in the history
…figurable as a Build Argument (vllm-project#9252)
  • Loading branch information
jyono authored Oct 10, 2024
1 parent 7326a7c commit 591824a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile.cpu
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ RUN pip install intel_extension_for_pytorch==2.4.0

WORKDIR /workspace

ENV PIP_EXTRA_INDEX_URL=https://download.pytorch.org/whl/cpu
ARG PIP_EXTRA_INDEX_URL="https://download.pytorch.org/whl/cpu"
ENV PIP_EXTRA_INDEX_URL=${PIP_EXTRA_INDEX_URL}
RUN --mount=type=cache,target=/root/.cache/pip \
--mount=type=bind,src=requirements-build.txt,target=requirements-build.txt \
pip install --upgrade pip && \
Expand Down

0 comments on commit 591824a

Please sign in to comment.