summaryrefslogtreecommitdiffhomepage
path: root/benchmarks
diff options
context:
space:
mode:
authorPratik raj <rajpratik71@gmail.com>2020-06-13 07:25:32 +0530
committerPratik raj <rajpratik71@gmail.com>2020-07-25 13:26:52 +0530
commitb9d94183348c6f72f79aa1fa69ce36147eda3660 (patch)
tree65c49cdc08ee2a4e66161535d6e6ecd7b158094e /benchmarks
parent7dd8d87c9626af792efdb5bb9621c7814db887d7 (diff)
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
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/workloads/tensorflow/Dockerfile4
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmarks/workloads/tensorflow/Dockerfile b/benchmarks/workloads/tensorflow/Dockerfile
index b5763e8ae..eefe6b3eb 100644
--- a/benchmarks/workloads/tensorflow/Dockerfile
+++ b/benchmarks/workloads/tensorflow/Dockerfile
@@ -3,8 +3,8 @@ FROM tensorflow/tensorflow:1.13.2
RUN apt-get update \
&& apt-get install -y git
RUN git clone --depth 1 https://github.com/aymericdamien/TensorFlow-Examples.git
-RUN python -m pip install -U pip setuptools
-RUN python -m pip install matplotlib
+RUN python -m pip install --no-cache-dir -U pip setuptools
+RUN python -m pip install --no-cache-dir matplotlib
WORKDIR /TensorFlow-Examples/examples