Issue building Docker
iSnakeBuzz opened this issue · comments
Martín commented
Hello, I have issues trying to build with Docker
=> ERROR [builder 7/7] RUN RUSTFLAGS="-Ctarget-cpu=native" cargo build --release --bin nmsr-aas --features ears --package 2.1s
------
> [builder 7/7] RUN RUSTFLAGS="-Ctarget-cpu=native" cargo build --release --bin nmsr-aas --features ears --package nmsr-aas:
0.664 Updating git repository `https://github.com/NickAcPT/smaa-rs`
1.011 Updating git repository `https://github.com/NickAcPT/ears-rs`
1.297 Updating crates.io index
1.951 error: failed to select a version for the requirement `smaa = "^0.10.1"`
1.951 candidate versions found which didn't match: 0.12.0, 0.11.0, 0.10.0, ...
1.951 location searched: crates.io index
1.951 required by package `nmsr-rendering v0.1.0 (/tmp/nmsr-rs/nmsr-3d-renderer/nmsr-rendering)`
1.951 perhaps a crate was updated and forgotten to be re-vendored?
------
Dockerfile:12
--------------------
10 | RUN git checkout nmsr-aas/next
11 |
12 | >>> RUN RUSTFLAGS="-Ctarget-cpu=native" cargo build --release --bin nmsr-aas --features ears --package nmsr-aas
13 |
14 | FROM rust:slim-bookworm
--------------------
ERROR: failed to solve: process "/bin/sh -c RUSTFLAGS=\"-Ctarget-cpu=native\" cargo build --release --bin nmsr-aas --features ears --package nmsr-aas" did not complete successfully: exit code: 101
NickAc commented
Hello, I have issues trying to build with Docker
@iSnakeBuzz sorry for taking too long to reply to this 😅
The error was that the Dockerfile was still pointing to an older branch instead of main. It should be fixed and ready to go now.