reanahub / reana-workflow-engine-snakemake

REANA Workflow Engine Snakemake
MIT License
0 stars 22 forks source link

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

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-snakemake, the resulting image shrink from 278 MBs to 230 MBs, ~48 MBs in total.

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