Upgrade Python Docker base image
ProprietaryUpdate the Python version of Python images in Dockerfiles to a target version: FROM python:<version> base images and COPY --from=<python image> / ADD --from=<python image> stage references (e.g. COPY --from=registry.example.com/approved-images/python:3.10-ubuntu22.04 /usr /usr). Tag suffixes such as -slim are preserved, any patch component is dropped, and an image already on a newer version is left as-is. --from references to named build stages are not image references and are left untouched.
org. openrewrite. python. migrate. UpgradePythonDockerImageRequired
The target Python version as MAJOR.MINOR (for example 3.12). Any patch component is dropped; the minor release is the upgrade target.
mod run . --recipe= org. openrewrite. python. migrate. UpgradePythonDockerImage \
-P version=3.12Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.