From 26ce9b0446ec2c8d7dded06d714a58a69eaf1dba Mon Sep 17 00:00:00 2001
From: Petr OspalĂ˝
Date: Thu, 24 Jan 2019 13:16:00 +0100
Subject: Fix broken docker build due to pip-19.0
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
pip-19.0 fails to build with the option --no-cache-dir
Change-Id: I6494c6c6b4dc49d4fbd2ce657ed9824c5b3847e3
Issue-ID: OOM-1607
Signed-off-by: Petr OspalĂ˝
---
ansible/docker/Dockerfile | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
(limited to 'ansible')
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
--
cgit 1.2.3-korg