From 4fa6c8b9d3afdb76ca9267725626f032aff02369 Mon Sep 17 00:00:00 2001 From: Runji Wang Date: Wed, 5 Jun 2024 21:33:29 +0800 Subject: [PATCH] fix(build): install rustup on ubuntu 22.04 (#17133) Signed-off-by: Runji Wang --- docker/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 1f4d96ce9f95a..f3132730582c3 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -124,9 +124,12 @@ LABEL org.opencontainers.image.source https://github.com/risingwavelabs/risingwa RUN apt-get update && apt-get -y install linux-tools-generic \ && ln -s "$(find /usr/lib/linux-tools/*/perf | head -1)" /usr/local/bin/perf -RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install gdb libpam-krb5 krb5-user telnet kafkacat rustup \ +RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install gdb libpam-krb5 krb5-user telnet kafkacat curl \ && rm -rf /var/lib/{apt,dpkg,cache,log}/ +RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --no-modify-path --default-toolchain none -y +ENV PATH /root/.cargo/bin/:$PATH + # Set default Rust toolchain but don't install it to keep the image size small # The toolchain will be installed when it is first used # Do not use `rustup default stable` because it will install immediately