-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
fix(Dockerfile): Using --no-install-recommends
(Optimization)
#2329
Conversation
Using `--no-install-recommends` (Optimization) Using a --no-install-recommends when apt-get installing packages. This will result in a smaller image size.
Using `--no-install-recommends` (Optimization) Using a --no-install-recommends when apt-get installing packages. This will result in a smaller image size.
What is not installed by this change please? How much smaller is the image? |
More cleanup tweaks using 1. apt-get clean 2. rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* removing downloaded packages and packages list will free up some space , results in smaller image size.
Codecov Report
@@ Coverage Diff @@
## master #2329 +/- ##
=======================================
Coverage 13.38% 13.38%
=======================================
Files 70 70
Lines 24232 24232
=======================================
Hits 3244 3244
Misses 20579 20579
Partials 409 409 Continue to review full report at Codecov.
|
More cleanup tweaks using 1. apt-get clean 2. rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* removing downloaded packages and packages list will free up some space , results in smaller image size.
More cleanup tweaks using 1. apt-get clean 2. rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* removing downloaded packages and packages list will free up some space , results in smaller image size.
By default, Ubuntu or Debian based "apt" or "apt-get" system installs recommended but not suggested packages . By passing "--no-install-recommends" option, the user lets apt-get know not to consider recommended packages as a dependency to install. This results in smaller downloads and installation of packages . Refer to blog at Ubuntu Blog . Another Cleanup tweaks using
removing downloaded packages and packages list will free up some space , results in smaller image size. |
Because Github CI build is 1. Slow and in log it is showing because "apt-utils" not installed 2. CI build exits with error in having certificate
Because Github CI build is 1. Slow and in log it is showing because "apt-utils" not installed 2. CI build exits with error in having certificate
Because Github CI build is 1. Slow and in log it is showing because "apt-utils" not installed 2. CI build exits with error in having certificate
Great stuff! |
Using a --no-install-recommends when apt-get installing packages.
This will result in a smaller image size.
Checklist:
"fix(controller): Updates such and such. Fixes #1234"
.