Open RafaelVidaurre opened 6 years ago
How can we improve caching for our docker container?
The most expensive thing to cache is probably packages. Since the system uses yarn workspaces, some dependencies are hoisted in the root, while many others are spread in the packages themselves. The hoisted dependencies should be cached in their own layer.
There are certain things that we should reevaluate of our deployment process.
The number one priority is the huge painpoint of having to wait so long for deployments. This can be solved by simulating deployments locally in a more efficient way, and avoding having to fake-commit to trigger new builds
Answer these questions:
Resources
Layer caching with Yarn & Docker