krishnanlab / geneplexus-app-v2

GenePlexus App - backend (cloud functions) and frontend
https://gene-plexus.netlify.app/
2 stars 0 forks source link

Adds build cache to pip installs #31

Closed falquaddoomi closed 5 months ago

falquaddoomi commented 5 months ago

Docker somewhat recently introduced the ability to cache folders during image creation time, documented here: Build cache, and more on it here: Mounts guide.

Basically, rather than having to refetch all the packages each time the Python requirements change, it only needs to fetch the new ones, since it retains pip's cache between image builds. This should speed up run_local.sh when the requirements change. You'll only see this speedup once per requirements change, since after that all the layers will be cached and it should "build" nearly instantly, but if you're making frequent changes to the requirements it helps.

netlify[bot] commented 5 months ago

Deploy Preview for gene-plexus canceled.

Name Link
Latest commit 3c7841703b1b8b2597a6e04115b97c494c3a6965
Latest deploy log https://app.netlify.com/sites/gene-plexus/deploys/662937366fb28e000863ec78