Closed as not planned
Description
Checklist
- I've looked through the issues and pull requests for similar request
- This feature could be solved with a custom docker image (optional)
Describe your request
Since buildx exist out of docker image it would ideal to be used in the Docker From
step inside a builder, to build mutliplatform images.
For this you must choose an different image tag for each platform. Docker/Buildx allows you to use environments variables like TARGETPLATFORM
inside the from step. The problem is that docker does not allow to use function here. So there is no way to map TARGETPLATFORM
to the needed rust tool chain.
Adding additional tags like musl-linux/arm64
, musl-linux/arm/v7
", etc would allow to use it as builder:
From --platform=$BUILDPLATFORM ghcr.io/rust-cross/rust-musl-cross:musl-$TARGETPLATFORM as builder
Describe why this would be a good inclusion for cross
It allows to use cross to build multiplatforms docker images without using DiD.
Hit this issue at ankitects/anki#2798, so currently only linux/amd64 is supported.
Maybe an solution for #1104