Skip to content

Commit 7f4bdad

Browse files
authored
[XPU]Refine Dockerfile.xpu, avoid oneccl dependency issue (vllm-project#27964)
Signed-off-by: Kunshang Ji <kunshang.ji@intel.com>
1 parent cec7c28 commit 7f4bdad

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docker/Dockerfile.xpu

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ ENV VLLM_WORKER_MULTIPROC_METHOD=spawn
5454

5555
RUN --mount=type=cache,target=/root/.cache/pip \
5656
--mount=type=bind,source=.git,target=.git \
57-
python3 setup.py install
57+
pip install --no-build-isolation .
5858

5959
CMD ["/bin/bash"]
6060

@@ -64,14 +64,14 @@ FROM vllm-base AS vllm-openai
6464
RUN --mount=type=cache,target=/root/.cache/pip \
6565
pip install accelerate hf_transfer pytest pytest_asyncio lm_eval[api] modelscope
6666

67-
RUN --mount=type=cache,target=/root/.cache/pip \
68-
pip uninstall oneccl oneccl-devel -y
69-
7067
# install development dependencies (for testing)
7168
RUN python3 -m pip install -e tests/vllm_test_utils
7269

7370
# install nixl from source code
7471
RUN python3 /workspace/vllm/tools/install_nixl_from_source_ubuntu.py
7572
ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib/python3.12/dist-packages/.nixl.mesonpy.libs/plugins/"
7673

74+
RUN --mount=type=cache,target=/root/.cache/pip \
75+
pip uninstall oneccl oneccl-devel -y
76+
7777
ENTRYPOINT ["vllm", "serve"]

0 commit comments

Comments
 (0)