From 96c07e29f2bdcb895e707cd4bbce4ac2c573cc72 Mon Sep 17 00:00:00 2001 From: Mario Apra Date: Wed, 24 Jul 2024 16:10:30 +0100 Subject: [PATCH] Update Dockerfile to install latest version of rust the apt version of rust is 1.5, while the latest stable version of rust is 1.79. By using the older version of Rust, it is not possible to compile cairo-lang-test-utils due to the following error: ```console #13 193.7 error[E0658]: use of unstable library feature 'result_option_inspect' #13 193.7 --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cairo-lang-test-utils-2.7.0-rc.3/src/parse_test_file.rs:74:34 #13 193.7 | #13 193.7 74 | fs::File::open(filename).inspect_err(|_| log::error!("File not found: {filename:?}"))?; ``` --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index ca13d18a29..2eb668bda2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,10 +3,10 @@ FROM ubuntu:24.10 AS build ARG VM_DEBUG -# Install Alpine Dependencies -# removal is temp. to fix https://github.com/orgs/community/discussions/120966 + RUN apt-get update && \ - apt-get install build-essential cargo git golang upx-ucl libjemalloc-dev libjemalloc2 -y + apt-get install curl build-essential git golang upx-ucl libjemalloc-dev libjemalloc2 -y +RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -q -y WORKDIR /app @@ -14,7 +14,7 @@ WORKDIR /app COPY . . # Build the project -RUN VM_DEBUG=${VM_DEBUG} make juno +RUN source ~/.cargo/env && VM_DEBUG=${VM_DEBUG} make juno # Compress the executable with UPX RUN upx-ucl /app/build/juno