Currently the lint docker/podman image has many issues:
- It relies on an EOL debian version.
- It relies on a debian version different from the one used in the CI lint task.
- It relies on the legacy docker build command, which requires the user to make
cd ./ci/lint/before the build step. - It doesn't use the
.python-versionfile, but a hardcoded version.
Fix all issues by using the recommended DOCKER_BUILDKIT=1 to generate the image.
Also:
- Rename
/tmp/pythonto/python_build. - Compress all
pip installcommands into one. - Bump
.python-version.