From 20feedaf07d70ad5c9eb6e8f661e20960b6637d7 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Mon, 3 Feb 2020 15:06:16 +0000 Subject: [PATCH] Use --no-cache-dir for pip installations in Dockerfile --- platypush/platydock/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/platydock/__init__.py b/platypush/platydock/__init__.py index 662e4b6c..596342f6 100755 --- a/platypush/platydock/__init__.py +++ b/platypush/platydock/__init__.py @@ -92,7 +92,7 @@ def generate_dockerfile(deps, ports, cfgfile, devdir, python_version): ''') for i, dep in enumerate(deps): - content += '\t&& pip install {}'.format(dep) + content += '\t&& pip install --no-cache-dir {}'.format(dep) if i < len(deps)-1: content += ' \\'.format(dep) content += '\n'