From cef6655b26943714d5857261d8a9fa82a027e98c Mon Sep 17 00:00:00 2001 From: Yineng Zhang Date: Tue, 10 Jun 2025 02:43:22 -0700 Subject: [PATCH] fix 24.12 docker (#7045) --- docker/Dockerfile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index b9364e7d1..c8b207600 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -18,12 +18,12 @@ RUN echo 'tzdata tzdata/Areas select America' | debconf-set-selections \ && apt clean # For openbmb/MiniCPM models -RUN pip3 install datamodel_code_generator +RUN pip3 install datamodel_code_generator --break-system-packages WORKDIR /sgl-workspace ARG CUDA_VERSION -RUN python3 -m pip install --upgrade pip setuptools wheel html5lib six \ +RUN python3 -m pip install --upgrade pip setuptools wheel html5lib six --break-system-packages --ignore-installed \ && git clone --depth=1 https://github.com/sgl-project/sglang.git \ && if [ "$CUDA_VERSION" = "12.1.1" ]; then \ export CUINDEX=121; \ @@ -33,19 +33,19 @@ RUN python3 -m pip install --upgrade pip setuptools wheel html5lib six \ export CUINDEX=124; \ elif [ "$CUDA_VERSION" = "11.8.0" ]; then \ export CUINDEX=118; \ - python3 -m pip install --no-cache-dir sgl-kernel -i https://docs.sglang.ai/whl/cu118; \ + python3 -m pip install --no-cache-dir sgl-kernel -i https://docs.sglang.ai/whl/cu118 --break-system-packages; \ else \ echo "Unsupported CUDA version: $CUDA_VERSION" && exit 1; \ fi \ && if [ "$CUDA_VERSION" = "12.4.1" ]; then \ - python3 -m pip install --no-cache-dir torch --index-url https://download.pytorch.org/whl/cu126; \ + python3 -m pip install --no-cache-dir torch --index-url https://download.pytorch.org/whl/cu126 --break-system-packages; \ else \ - python3 -m pip install --no-cache-dir torch --index-url https://download.pytorch.org/whl/cu${CUINDEX}; \ + python3 -m pip install --no-cache-dir torch --index-url https://download.pytorch.org/whl/cu${CUINDEX} --break-system-packages; \ fi \ && cd sglang \ - && python3 -m pip --no-cache-dir install -e "python[${BUILD_TYPE}]" \ + && python3 -m pip --no-cache-dir install -e "python[${BUILD_TYPE}]" --break-system-packages \ && if [ "$CUDA_VERSION" = "12.8.1" ]; then \ - python3 -m pip install nvidia-nccl-cu12==2.26.2.post1 --force-reinstall --no-deps; \ + python3 -m pip install nvidia-nccl-cu12==2.26.2.post1 --force-reinstall --no-deps --break-system-packages; \ fi ENV DEBIAN_FRONTEND=interactive