builder: use rust 1.81

This commit is contained in:
gnattu
2024-10-22 23:52:20 +08:00
parent 7107cc2e4f
commit ef477e9ded
+3 -2
View File
@@ -18,8 +18,9 @@ RUN \
git config --global advice.detachedHead false
ENV CARGO_HOME="/opt/cargo" RUSTUP_HOME="/opt/rustup" PATH="/opt/cargo/bin:${PATH}"
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y --no-modify-path && \
cargo install cargo-c@0.10.4 && rm -rf "${CARGO_HOME}"/registry "${CARGO_HOME}"/git
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y --no-modify-path
RUN rustup install 1.81.0
RUN cargo +1.81.0 install cargo-c && rm -rf "${CARGO_HOME}"/registry "${CARGO_HOME}"/git
RUN --mount=src=.,dst=/input \
for s in /input/*.sh; do cp $s /usr/bin/$(echo $s | sed -e 's|.*/||' -e 's/\.sh$//'); done