summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Ospalý <p.ospaly@partner.samsung.com>2019-01-24 13:16:00 +0100
committerPetr Ospalý <p.ospaly@partner.samsung.com>2019-01-24 13:22:43 +0100
commit26ce9b0446ec2c8d7dded06d714a58a69eaf1dba (patch)
treea96d5d5450a19181d6ad808c423cc289c64d4709
parenta2382319684880aabd05678ed1c5ce63363ca1a9 (diff)
Fix broken docker build due to pip-19.0
pip-19.0 fails to build with the option --no-cache-dir Change-Id: I6494c6c6b4dc49d4fbd2ce657ed9824c5b3847e3 Issue-ID: OOM-1607 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
-rw-r--r--ansible/docker/Dockerfile6
1 files changed, 3 insertions, 3 deletions
diff --git a/ansible/docker/Dockerfile b/ansible/docker/Dockerfile
index 4cefa8b7..f249d3b6 100644
--- a/ansible/docker/Dockerfile
+++ b/ansible/docker/Dockerfile
@@ -20,12 +20,12 @@ RUN apk --no-cache update \
py3-openssl \
openssh \
sshpass \
-&& pip3 install --no-cache-dir --upgrade pip \
-&& pip3 install --no-cache-dir \
+&& pip3 install --upgrade pip \
+&& pip3 install \
ansible==$ansible_version \
jmespath \
netaddr \
-&& apk del build-dependencies && rm -rf /var/cache/apk/*
+&& apk del build-dependencies && rm -rf /var/cache/apk/* && rm -rf /root/.cache
ENV ANSIBLE_HOST_KEY_CHECKING false
ENV ANSIBLE_RETRY_FILES_ENABLED false