Skip to content

Commit

Permalink
[CI/Build] fix Dockerfile.cpu build on podman
Browse files Browse the repository at this point in the history
podman does not like RUN --mount with relative paths
when WORKDIR is not set.

fixes #5738
  • Loading branch information
dtrifiro committed Sep 17, 2024
1 parent 1b6de83 commit 4278059
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile.cpu
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ RUN echo 'ulimit -c 0' >> ~/.bashrc

RUN pip install https://intel-extension-for-pytorch.s3.amazonaws.com/ipex_dev/cpu/intel_extension_for_pytorch-2.4.0%2Bgitfbaa4bc-cp310-cp310-linux_x86_64.whl

WORKDIR /workspace

ENV PIP_EXTRA_INDEX_URL=https://download.pytorch.org/whl/cpu
RUN --mount=type=cache,target=/root/.cache/pip \
--mount=type=bind,src=requirements-build.txt,target=requirements-build.txt \
Expand Down

0 comments on commit 4278059

Please sign in to comment.