notify_push icon indicating copy to clipboard operation
notify_push copied to clipboard

Dockerfile arm64v8 build failure, ekidd/rust-musl-builder only available for amd64

Open schklom opened this issue 3 years ago • 0 comments

I cannot build the Dockerfile for arm64v8, because the build image ekidd/rust-musl-builder is only available for amd64, which results in the error

Step 2/12 : COPY Cargo.toml Cargo.lock ./
 ---> b9d4cde0e234
Step 3/12 : RUN mkdir src &&  sudo chown -R rust:rust . &&  sed -i '/test_client/d' Cargo.toml &&  echo "fn main(){}" > src/main.rs &&  cargo build --release &&  rm -r src
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
 ---> Running in 8a0c42a64453
standard_init_linux.go:228: exec user process caused: exec format error
The command '/bin/sh -c mkdir src &&  sudo chown -R rust:rust . &&  sed -i '/test_client/d' Cargo.toml &&  echo "fn main(){}" > src/main.rs &&  cargo build --release &&  rm -r src' returned a non-zero code: 1

Does someone know of an equivalent image to ekidd/rust-musl-builder that is available on arm platforms and that can replace it?

schklom avatar Feb 17 '22 12:02 schklom