diff --git a/docker/npu.Dockerfile b/docker/npu.Dockerfile index 928ce4ee7..bf135b293 100644 --- a/docker/npu.Dockerfile +++ b/docker/npu.Dockerfile @@ -85,10 +85,10 @@ RUN . /etc/environment_new && \ ## Install triton-ascend RUN (${PIP_INSTALL} pybind11 triton-ascend) -# Install SGLang -RUN git clone https://github.com/sgl-project/sglang --branch $SGLANG_TAG && \ - (cd sglang/python && rm -rf pyproject.toml && mv pyproject_npu.toml pyproject.toml && ${PIP_INSTALL} -v .[all_npu]) && \ - rm -rf sglang +# Install SGLang (editable mode to preserve source and git history) +RUN git clone https://github.com/sgl-project/sglang --branch $SGLANG_TAG /sgl-workspace/sglang && \ + cd /sgl-workspace/sglang/python && rm -rf pyproject.toml && mv pyproject_npu.toml pyproject.toml && \ + ${PIP_INSTALL} -v -e .[all_npu] # Install Deep-ep # pin wheel to 0.45.1 ref: https://github.com/pypa/wheel/issues/662