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.
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.