-
Notifications
You must be signed in to change notification settings - Fork 601
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
apt-get clean ineffective #1004
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: