rust-lang / docker-rust

The official Docker images for Rust
431 stars 89 forks source link

Images after 1.59 do not contain dash any more #106

Closed agorgl closed 2 years ago

agorgl commented 2 years ago

Up to image version 1.58, dash (/bin/sh) existed in the image allowing the use of cargo install commands. Now with image 1.59 upwards, this:

FROM rust:1.60 AS chef
RUN cargo install cargo-chef
...

Results to:

...
[1/4] STEP 2/3: RUN cargo install cargo-chef
exec container process (missing dynamic library?) `/bin/sh`: No such file or directory
...

thus braking any container scripts relying on installing cargo plugins with cargo install in the base image

EDIT: I tried cross building also with --arch=arm64 and this seems to be an issue that also affects the arm64 images too, checked back to 1.56 (not working)

agorgl commented 2 years ago

After trying various things, this seems to be a problem with my local podman setup Closing