From f59d96f879d6060d9d63eb240ca2f5fe40c99d80 Mon Sep 17 00:00:00 2001 From: Jin Hai Date: Tue, 24 Mar 2026 17:04:57 +0800 Subject: [PATCH] Remove rust/cargo install in docker (#13739) ### What problem does this PR solve? As title ### Type of change - [x] Refactoring Signed-off-by: Jin Hai --- Dockerfile | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8e02fdc72..35fd3249e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -98,27 +98,11 @@ ENV PATH=/root/.local/bin:$PATH # nodejs 12.22 on Ubuntu 22.04 is too old RUN --mount=type=cache,id=ragflow_apt,target=/var/cache/apt,sharing=locked \ curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \ - apt purge -y nodejs npm cargo && \ + apt purge -y nodejs npm && \ apt autoremove -y && \ apt update && \ apt install -y nodejs -# A modern version of cargo is needed for the latest version of the Rust compiler. -RUN apt update && apt install -y curl build-essential \ - && if [ "$NEED_MIRROR" == "1" ]; then \ - # Use TUNA mirrors for rustup/rust dist files \ - export RUSTUP_DIST_SERVER="https://mirrors.tuna.tsinghua.edu.cn/rustup"; \ - export RUSTUP_UPDATE_ROOT="https://mirrors.tuna.tsinghua.edu.cn/rustup/rustup"; \ - echo "Using TUNA mirrors for Rustup."; \ - fi; \ - # Force curl to use HTTP/1.1 \ - curl --proto '=https' --tlsv1.2 --http1.1 -sSf https://sh.rustup.rs | bash -s -- -y --profile minimal \ - && echo 'export PATH="/root/.cargo/bin:${PATH}"' >> /root/.bashrc - -ENV PATH="/root/.cargo/bin:${PATH}" - -RUN cargo --version && rustc --version - # Add msssql ODBC driver # macOS ARM64 environment, install msodbcsql18. # general x86_64 environment, install msodbcsql17.