Skip to content

Commit

Permalink
Update Dockerfile to install latest version of rust
Browse files Browse the repository at this point in the history
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:?}"))?;
```
  • Loading branch information
derrix060 committed Jul 24, 2024
1 parent 32350ec commit 96c07e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ 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

# Copy source code
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
Expand Down

0 comments on commit 96c07e2

Please sign in to comment.