File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -124,9 +124,14 @@ LABEL org.opencontainers.image.source https://github.com/risingwavelabs/risingwa
124
124
RUN apt-get update && apt-get -y install linux-tools-generic \
125
125
&& ln -s "$(find /usr/lib/linux-tools/*/perf | head -1)" /usr/local/bin/perf
126
126
127
- RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install gdb libpam-krb5 krb5-user telnet kafkacat \
127
+ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install gdb libpam-krb5 krb5-user telnet kafkacat rustup \
128
128
&& rm -rf /var/lib/{apt,dpkg,cache,log}/
129
129
130
+ # Set default Rust toolchain but don't install it to keep the image size small
131
+ # The toolchain will be installed when it is first used
132
+ # Do not use `rustup default stable` because it will install immediately
133
+ RUN rustup show && sed -i '1s/^/default_toolchain = "stable"\n /' ~/.rustup/settings.toml
134
+
130
135
RUN mkdir -p /risingwave/bin/connector-node && mkdir -p /risingwave/lib
131
136
132
137
COPY --from=rust-builder /risingwave/bin/risingwave /risingwave/bin/risingwave
You can’t perform that action at this time.
0 commit comments