Unverified Commit 21efb603 authored by jordanyono's avatar jordanyono Committed by GitHub
Browse files

[CI/Build] Make the `Dockerfile.cpu` file's `PIP_EXTRA_INDEX_URL`...

[CI/Build] Make the `Dockerfile.cpu` file's  `PIP_EXTRA_INDEX_URL` Configurable as a Build Argument (#9252)
parent 055f3270
...@@ -26,7 +26,8 @@ RUN pip install intel_extension_for_pytorch==2.4.0 ...@@ -26,7 +26,8 @@ RUN pip install intel_extension_for_pytorch==2.4.0
WORKDIR /workspace 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 \ RUN --mount=type=cache,target=/root/.cache/pip \
--mount=type=bind,src=requirements-build.txt,target=requirements-build.txt \ --mount=type=bind,src=requirements-build.txt,target=requirements-build.txt \
pip install --upgrade pip && \ pip install --upgrade pip && \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment