Skip to content

Commit

Permalink
fix(build): install rustup on ubuntu 22.04 (#17133)
Browse files Browse the repository at this point in the history
Signed-off-by: Runji Wang <[email protected]>
  • Loading branch information
wangrunji0408 authored Jun 5, 2024
1 parent 0ff6d09 commit 4fa6c8b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4fa6c8b

Please sign in to comment.