@@ -4,16 +4,16 @@ ARG RUST_VERSION=1.85.0
44FROM ubuntu:24.04
55ARG RUST_VERSION
66
7- # Install rust.
8- RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain ${RUST_VERSION}
9- ENV PATH="/root/.cargo/bin:${PATH}"
10-
117# Install additional packages
128RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
139 && apt-get -y install --no-install-recommends protobuf-compiler libprotobuf-dev libclang-dev libzstd-dev make pkg-config libssl-dev
1410
1511RUN apt-get install -y gh libgmp3-dev software-properties-common curl git unzip
1612
13+ # Install rust.
14+ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -y --default-toolchain ${RUST_VERSION}
15+ ENV PATH="/root/.cargo/bin:${PATH}"
16+
1717# To allow independent workflow of the container, the rust-toolchain is explicitely given.
1818RUN echo ${RUST_VERSION} > rust_toolchain_version
1919# Make sure to sync the nightly version with the scripts in ./scripts
@@ -28,7 +28,7 @@ RUN rustup toolchain install $(cat rust_toolchain_version) && \
2828 rustup component add rustfmt
2929
3030RUN rustup toolchain install $(cat nightly_rust_toolchain_version) && \
31- rustup component add rustfmt clippy --toolchain $(cat nightly_rust_toolchain_version)
31+ rustup component add rustfmt clippy --toolchain $(cat nightly_rust_toolchain_version)
3232
3333RUN rustup target add x86_64-pc-windows-msvc && \
3434 rustup target add wasm32-unknown-unknown
@@ -66,6 +66,3 @@ ENV PATH="${PATH}:/root/go/bin"
6666
6767RUN asdf plugin add scarb
6868RUN asdf install scarb 2.9.4
69-
70- RUN chown -R root:root /usr/local/cargo
71- RUN chmod -R 700 /usr/local/cargo
0 commit comments