Skip to content

Commit

Permalink
builder: use rust 1.81
Browse files Browse the repository at this point in the history
  • Loading branch information
gnattu committed Oct 22, 2024
1 parent 7107cc2 commit ef477e9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions builder/images/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected] && 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

0 comments on commit ef477e9

Please sign in to comment.