Use --no-cache-dir for pip installations in Dockerfile

This commit is contained in:
Fabio Manganiello 2020-02-03 15:06:16 +00:00
parent 8caa170676
commit 20feedaf07
1 changed files with 1 additions and 1 deletions

View File

@ -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'