From 2515bbd02798a0f736a82bbdd10dbf9d5accfa7c Mon Sep 17 00:00:00 2001 From: Pengchao Wang Date: Thu, 29 Jan 2026 00:19:05 -0800 Subject: [PATCH] [CI/Build][BugFix] fix cuda/compat loading order issue in docker build (#33116) Signed-off-by: Pengchao Wang Co-authored-by: Ye (Charlotte) Qi --- docker/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 5f9649144..d036d1d92 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -135,7 +135,7 @@ ENV UV_LINK_MODE=copy RUN gcc --version # Ensure CUDA compatibility library is loaded -RUN echo "/usr/local/cuda-$(echo "$CUDA_VERSION" | cut -d. -f1,2)/compat/" > /etc/ld.so.conf.d/00-cuda-compat.conf && ldconfig +RUN echo "/usr/local/cuda-$(echo "$CUDA_VERSION" | cut -d. -f1,2)/compat/" > /etc/ld.so.conf.d/cuda-compat.conf && ldconfig # ============================================================ # SLOW-CHANGING DEPENDENCIES BELOW @@ -565,7 +565,7 @@ ENV UV_INDEX_STRATEGY="unsafe-best-match" ENV UV_LINK_MODE=copy # Ensure CUDA compatibility library is loaded -RUN echo "/usr/local/cuda-$(echo "$CUDA_VERSION" | cut -d. -f1,2)/compat/" > /etc/ld.so.conf.d/00-cuda-compat.conf && ldconfig +RUN echo "/usr/local/cuda-$(echo "$CUDA_VERSION" | cut -d. -f1,2)/compat/" > /etc/ld.so.conf.d/cuda-compat.conf && ldconfig # ============================================================ # SLOW-CHANGING DEPENDENCIES BELOW