mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 18:12:55 +01:00
Ensure that package managers clean up
Every package manager should clean up after themselves in order to keep docker layers neat and tiny: apt (Debian/Ubuntu package manager): - unneeded dependencies are cleared (autoremove) - caches are cleaned (clean) - package lists are deleted yum (CentOS package manager), zypper (OpenSuse package manager) - should clear caches after installing dependencies pip (Python package manager), apk (Alpine package manager) - should use no cache for installing dependencies
This commit is contained in:
parent
9fa4aa85c2
commit
5380948868
19 changed files with 62 additions and 27 deletions
|
|
@ -35,3 +35,7 @@ rm -rf /var/lib/apt/lists/*
|
|||
wget -q https://chromedriver.storage.googleapis.com/$CHROME_DRIVER_VERSION/chromedriver_linux64.zip
|
||||
unzip chromedriver_linux64.zip -d /usr/local/bin
|
||||
rm -f chromedriver_linux64.zip
|
||||
|
||||
apt-get autoremove -yq
|
||||
apt-get clean -yqq
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue