PhilipMay / smart-prom-next

S.M.A.R.T. Prometheus Metrics Exporter
MIT License
17 stars 1 forks source link

Reduce Debian image size #46

Closed PhilipMay closed 2 years ago

PhilipMay commented 2 years ago

1

https://www.ecloudcontrol.com/best-practices-to-reduce-docker-images-size/

Add rm -rf /var/lib/apt/lists/* at the end of the apt-get -y install to clean up after install packages. (For yum, use yum clean all)

2

https://www.fromlatest.io/

3

https://www.augmentedmind.de/2022/02/06/optimize-docker-image-size/

PhilipMay commented 2 years ago
debian default 
163

rm -rf /var/lib/apt/lists/*
145
PhilipMay commented 2 years ago

done