docker-library / python

Docker Official Image packaging for Python

Home Page:https://www.python.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support platform darwin/arm64

reneleonhardt opened this issue · comments

The official Python image is amazing, thank you!

Would it be possible to provide builds for more platforms?
GitHub Actions can easily access macos-latest for example.
Docker buildx / BuildKit / containerd / Go support many platforms including darwin/arm64:
https://github.com/containerd/containerd/blob/v1.7.17/platforms/platforms.go#L96

I was able to easily compile scripts with Nuitka on platforms this base image already offers (like linux/amd64 and arm64).
If python would also push darwin/arm64 manifests then the Python ecosystem could offer native builds for more Desktop users.
In times of llama.cpp and DuckDB I think more possibilities to build native experiences are crucial for the community to spread forward into new territories and use cases.

Unfortunately, darwin is not supported in https://github.com/docker-library/official-images, and I'm not actually sure what it would even mean for it to be. 🤔

As far as I know, macOS containers are not currently (or planned to be) a thing. I have seen several very clever/cute hacks over the years (with varying degrees of "macOS" behavior), but nothing that seemed like it was gaining much momentum. 🙈