-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
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
Labels
No labels