Skip to content

python:3.8 base image has suspicious python package already installed  #50

Open
@hengwang322

Description

@hengwang322

Build an image using this simple Dockerfile:

FROM public.ecr.aws/lambda/python:3.8
ENTRYPOINT ["tail", "-f", "/dev/null"]

And then execute pip freeze inside the container

docker build -t test_app .
docker run -d --name test test_app   
docker exec test pip freeze

Will show that there's a suspicious-looking package installed:

rapid_client==0.0.0

Since I have done nothing in the Dockerfile, it appears to be that package is somehow installed in the base image itself. Although the package in question seems to be empty from PyPI, it's still a risk and should be removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions