Skip to content

Shebangs using different Python binary with latest Docker image in 3.10 #967

Closed
@stephenmelrose

Description

@stephenmelrose

Hi there,

We use Python 3.10 for our application Docker images. Our build process utilizes the python:3.10 Docker image to do a pip3 install, and then we copy all the dependencies over into our main Docker image in a multi-stage build. The main Docker image in question is Ubuntu Jammy based and also has Python 3.10.

We install various Python packages in our Docker image. One for example is pylint. Before today, the shebang for /usr/local/bin/pylint was #!/usr/local/bin/python. Today, this is now #!/usr/local/bin/python3.10. Said file does not exist.

I believe this is related to the latest Docker image release: https://hub.docker.com/layers/library/python/3.10/images/sha256-88cf7f1097c7a1afcf157272fd5b82709a97a68bbc4ad97a5a3119af7f2fe58b?context=explore

I'm not sure what has caused this change, likely a pip update or something? But I wanted to report it in the event it's a bug.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions