Skip to content

Does apt install of python3 affect python in slim? #777

@tisdall

Description

@tisdall

I was looking at reducing my build size by using the slim build and then only including build dependencies while building and then purging them. Everything seems to work fine. However, I noticed that when I include glib that apt pulls in python3. I see in #253 that this is to be expected, but I was wondering if this has any potential in breaking the python already within the container.

Specifically, does having something like this in Dockerfile have any potential in breaking something?

RUN apt-get update && \
    apt-get install -y --no-install-recommends python3 && \
    apt-get purge --autoremove -y python3 && \
    rm -rf /var/lib/apt/lists/*

This is obviously contrived, but does apt adding it's own python3 and removing it alter things that need to not be altered?

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