You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the problem is that this only works when it is executed in the same RUN that also uses apt-get update, otherwise the data is already baked into a previous layer and all you achive is to record it as deleted which actually increases the layer size again.
In the Dockerfile you try to reduce the image size by cleaning the apt caches with
the problem is that this only works when it is executed in the same
RUN
that also usesapt-get update
, otherwise the data is already baked into a previous layer and all you achive is to record it as deleted which actually increases the layer size again.See https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#apt-get
The text was updated successfully, but these errors were encountered: