calebolson123 / BabySleepCoach

DIY Baby Sleep Tracking
https://calebolson.com
Other
201 stars 35 forks source link

Docker Pip build speed #39

Closed bckelly1 closed 5 months ago

bckelly1 commented 5 months ago

Just a nice to have. When tinkering on it it's nice to have to build quickly. Copying the dependency file in first and having it build the dependencies prior to copying in the application code means docker can cache the dependency layer and not run it on every code change.

I would do it for the yarn build too but I'm not positive how that works.

calebolson123 commented 5 months ago

Nice, yeah it's a slow image build.. lots of ways to improve. Thanks for adding this