When following the instructions on CONTRIBUTING.md:
# change directory into the rust-fitsio root directory
docker build -t <tag> .
docker run --rm -it -v $(pwd):/project <tag> bash
... the docker build fails with the following message on a Mac with Apple silicon (M1):
➜ rust-fitsio git:(main) ✗ docker build -t fitsio .
[+] Building 165.4s (7/9)
...
=> ERROR [3/5] RUN rustup update && rustup install stable && rustup install nightly && rustup component add clippy --toolchain stable-x8 163.6s
------
> [3/5] RUN rustup update && rustup install stable && rustup install nightly && rustup component add clippy --toolchain stable-x86_64-unknown-linux-gnu:
...
#6 163.6 error: toolchain 'stable-x86_64-unknown-linux-gnu' is not installed
It would appear that the Dockerfile (or build command) assumes an Intel-based Mac.
When following the instructions on
CONTRIBUTING.md:... the docker build fails with the following message on a Mac with Apple silicon (M1):
It would appear that the Dockerfile (or build command) assumes an Intel-based Mac.