Worked with python:3.9.11 but didn't work with python:3.9.11-alpine 😮
This is crazy.
actually no it is not, alpine is Not a good baseline, is is very very slim missing a ton of stuff.
I would use bullseye or slim (depending how many aux things you need on the container)
https://hub.docker.com//python/tags?page=1&name=bullseye
https://hub.docker.com//python/tags?page=1&name=slim-bullseye
Worked with Bullseye image. Thanks for the suggestion.