From edba96b98a46b6145864fabe880005f0312d086d Mon Sep 17 00:00:00 2001 From: Simo Lin Date: Mon, 23 Feb 2026 19:00:05 -0800 Subject: [PATCH] fix(docker): migrate ROCm Dockerfiles from setuptools-rust to maturin (#19210) Signed-off-by: Simo Lin --- docker/rocm.Dockerfile | 6 +++--- docker/rocm720.Dockerfile | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docker/rocm.Dockerfile b/docker/rocm.Dockerfile index 21b9484c1..e9f7b1160 100644 --- a/docker/rocm.Dockerfile +++ b/docker/rocm.Dockerfile @@ -214,10 +214,10 @@ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \ ENV CARGO_BUILD_JOBS=4 # Build and install sgl-model-gateway -RUN python3 -m pip install --no-cache-dir setuptools-rust \ +RUN python3 -m pip install --no-cache-dir maturin \ && cd /sgl-workspace/sglang/sgl-model-gateway/bindings/python \ - && /bin/bash -lc 'ulimit -n 8192 && cargo build --release' \ - && python3 -m pip install --no-cache-dir . \ + && ulimit -n 65536 && maturin build --release --features vendored-openssl --out dist \ + && python3 -m pip install --force-reinstall dist/*.whl \ && rm -rf /root/.cache # ----------------------- diff --git a/docker/rocm720.Dockerfile b/docker/rocm720.Dockerfile index 2626f19f4..d7dae79a0 100644 --- a/docker/rocm720.Dockerfile +++ b/docker/rocm720.Dockerfile @@ -243,10 +243,10 @@ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \ ENV CARGO_BUILD_JOBS=4 # Build and install sgl-model-gateway -RUN python3 -m pip install --no-cache-dir setuptools-rust \ +RUN python3 -m pip install --no-cache-dir maturin \ && cd /sgl-workspace/sglang/sgl-model-gateway/bindings/python \ - && /bin/bash -lc 'ulimit -n 8192 && cargo build --release' \ - && python3 -m pip install --no-cache-dir . \ + && ulimit -n 65536 && maturin build --release --features vendored-openssl --out dist \ + && python3 -m pip install --force-reinstall dist/*.whl \ && rm -rf /root/.cache # -----------------------