optimize size and time using "--no-cache-dir" 60/108860/1
authorPratik Raj <rajpratik71@gmail.com>
Sat, 6 Jun 2020 16:19:55 +0000 (21:49 +0530)
committerPratik Raj <rajpratik71@gmail.com>
Sat, 6 Jun 2020 16:23:36 +0000 (21:53 +0530)
commite46ace7013f61a5cd0265b813d4f596e5140b666
treef40b9f0585d09f57aee5a68ff7bcf5b7f5f520bf
parent8c7774e524e4df5105f8b3a199d368adf4937886
optimize size and time using "--no-cache-dir"

Using "--no-cache-dir" flag in pip install ,make sure dowloaded packages
by pip don't cached on system . This is a best practise which make sure
to fetch ftom repo instead of using local cached one . Further , in case
of Docker Containers , by restricing caching , we can reduce image size.
In term of stats , it depends upon the number of python packages
multiplied by their respective size . e.g for heavy packages with a lot
of dependencies it reduce a lot by don't caching pip packages.

Further , more detail information can be found at

https://medium.com/sciforce/strategies-of-docker-images-optimization-2ca9cc5719b6

Issue-ID: CLAMP-861

Signed-off-by: Pratik Raj <rajpratik71@gmail.com>
Change-Id: I7e7a7799ae48901c289d07bc07e7c96f24f5d078
README.md
extra/docker/clamp/docker-compose.yml
src/test/resources/http-cache/start_http_cache.sh