use `--no-cache-dir` flag to `pip` in dockerfiles to save space
[kuberef.git] / sw_config / bmra / Dockerfile
index 7b30ba5..97442d8 100644 (file)
@@ -5,8 +5,8 @@ MAINTAINER "Rihab Banday <rihab.banday@ericsson.com>"
 RUN yum -y update && \
     yum -y install git epel-release python36 python-netaddr && \
     yum -y install python-pip && \
-    pip install pip==9.0.3 && \
-    pip install ansible==2.9.6 jmespath && \
-    pip install jinja2 --upgrade
+    pip install --no-cache-dir pip==9.0.3 && \
+    pip install --no-cache-dir ansible==2.9.6 jmespath && \
+    pip install --no-cache-dir jinja2 --upgrade
 
 CMD ["bash"]