Skip to content

Can we bump Rust version in Dockerfile from 1.81 to 1.89? #107

@googgoog

Description

@googgoog

Problem

Hi, I'm unable to build the Docker image using the current Dockerfile. The Docker build fails because the latest svm-rs (0.5.22) requires Rust 1.89, but the Dockerfile currently uses rust:1.81:

=> => transferring context: 355.94MB                                                2.2s
 => [build-environment 2/6] RUN apt-get update -y && apt-get install -y --no-insta  25.9s
 => ERROR [build-environment 3/6] RUN cargo install svm-rs &&     svm install 0.8.2  1.1s
------
 > [build-environment 3/6] RUN cargo install svm-rs &&     svm install 0.8.24:
0.151     Updating crates.io index
1.047 error: cannot install package `svm-rs 0.5.22`, it requires rustc 1.89 or newer, while the currently active rustc version is 1.81.0
1.047 `svm-rs 0.5.17` supports rustc 1.81
------

 3 warnings found (use docker --debug to expand):
 - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 29)
 - UndefinedVar: Usage of undefined variable '$TARGETARCH' (line 21)
 - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 2)
Dockerfile:14
--------------------
  13 |     
  14 | >>> RUN cargo install svm-rs && \
  15 | >>>     svm install 0.8.24
  16 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c cargo install svm-rs &&     svm install 0.8.24" did not complete successfully: exit code: 101

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions