reanahub / reana-workflow-engine-cwl

REANA Workflow Engine CWL
http://reana-workflow-engine-cwl.readthedocs.io/
MIT License
5 stars 37 forks source link

docker: add --no-cache-dir to pip install #194

Closed Sinclert closed 3 years ago

Sinclert commented 3 years ago

This PR disables the pip cache when installing requirements. This is a common practice when installing packages on Docker images, as it helps reduce images size. In the case of reana-workflow-engine-cwl, the resulting image shrink from 505 MBs to 487 MBs, ~18 MBs in total.

This optimization comes from discussion on https://github.com/reanahub/reana-server/pull/396

codecov-commenter commented 3 years ago

Codecov Report

Merging #194 (1b571e1) into master (61a87cb) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #194   +/-   ##
=======================================
  Coverage   24.81%   24.81%           
=======================================
  Files          10       10           
  Lines         548      548           
=======================================
  Hits          136      136           
  Misses        412      412