diff --git a/container/Dockerfile.tensorrt_llm b/container/Dockerfile.tensorrt_llm index 661957b50573..3fad937edb53 100644 --- a/container/Dockerfile.tensorrt_llm +++ b/container/Dockerfile.tensorrt_llm @@ -142,7 +142,10 @@ ENV CARGO_BUILD_JOBS=${CARGO_BUILD_JOBS:-16} WORKDIR /workspace -RUN yum install -y protobuf-compiler \ +RUN yum update -y \ + && yum install -y protobuf-compiler \ + || yum install -y https://raw.repo.almalinux.org/almalinux/8.10/AppStream/x86_64/os/Packages/protobuf-3.5.0-15.el8.x86_64.rpm \ + https://raw.repo.almalinux.org/almalinux/8.10/AppStream/x86_64/os/Packages/protobuf-compiler-3.5.0-15.el8.x86_64.rpm \ && yum clean all \ && rm -rf /var/cache/yum diff --git a/container/Dockerfile.vllm b/container/Dockerfile.vllm index 85e7c855cd44..14023023afca 100644 --- a/container/Dockerfile.vllm +++ b/container/Dockerfile.vllm @@ -306,9 +306,12 @@ ENV CARGO_BUILD_JOBS=${CARGO_BUILD_JOBS:-16} ARG RELEASE_BUILD WORKDIR /workspace -RUN yum install -y protobuf-compiler \ - && yum clean all \ - && rm -rf /var/cache/yum +RUN yum update -y \ + && yum install -y protobuf-compiler \ + || yum install -y https://raw.repo.almalinux.org/almalinux/8.10/AppStream/x86_64/os/Packages/protobuf-3.5.0-15.el8.x86_64.rpm \ + https://raw.repo.almalinux.org/almalinux/8.10/AppStream/x86_64/os/Packages/protobuf-compiler-3.5.0-15.el8.x86_64.rpm \ + && yum clean all \ + && rm -rf /var/cache/yum ENV RUSTUP_HOME=/usr/local/rustup \ CARGO_HOME=/usr/local/cargo \