Build multi-platform Docker images (amd64 + arm64)#149
Open
Conversation
c52f580 to
d0e9077
Compare
The docker buildx build command had no --platform flag, so images were built only for the host architecture. This caused examples to fail on amd64 when the published image was arm64-only. - Add --platform linux/amd64,linux/arm64 to buildx commands in tox.ini - Add QEMU and Buildx setup steps to CI workflow - Simplify tox docker-push to push directly to Dockerhub - Update RELEASE.md to use tox -e docker-push - Switch base Docker image to python:3.14.1-slim and bump numpy version for 3.14 to avoid building numpy within amd64 container.
d0e9077 to
34ae879
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The docker buildx build command had no
--platformflag, so images were built only for the host architecture. This caused examples to fail on amd64 when the published image was arm64-only.--platform linux/amd64,linux/arm64to buildx commands intox.initox -e docker-pushpython:3.14.1-slimand bump numpy versionfor 3.14 to avoid building numpy within amd64 container.