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
Cleans up apt's cache after installing everything.
Also added the number of cores of the current machine in order to avoid an infinite amount of threads being spawned and using way too much RAM.
Fixes#881.
Authors:
- Igor Moura <[email protected]>
- Igor Moura <[email protected]>
- Karthikeyan <[email protected]>
Approvers:
- AJ Schmidt
- Karthikeyan
- AJ Schmidt
URL: #6619
Describe the bug
The Dockerfile contains build commands but no corresponding clean commands.
Steps/Code to reproduce bug
Each layer size is bigger than its intended size due to storage space taken by temporary files.
Expected behavior
dockerfile best practices suggest to clean the temporary files after build/install in same RUN command. https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#run
Otherwise, that layer will take more storage space.
Environment details (please complete the following information):
Additional context
add clean commands for all build commands generating temporary files.
The text was updated successfully, but these errors were encountered: