Skip to content

Commit ad2ca57

Browse files
committed
fix: use latest ubuntu to allow katana download
1 parent 75f241a commit ad2ca57

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ ARG RUST_VERSION=1.85.0
44
FROM ubuntu:24.04
55
ARG 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
128
RUN 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

1511
RUN 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.
1818
RUN 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

3030
RUN 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

3333
RUN 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

6767
RUN asdf plugin add scarb
6868
RUN 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

Comments
 (0)