Solution To Manage Gems Effectively
Learn to manage gems effectively using Gem Cache Volume.
We'll cover the following...
Using a Gem Cache Volume
As we have seen, the key problem is that Docker’s image building, akin to building a machine from scratch, is at odds with the caching of gems with Bundler. What if, instead of fighting the image build process, we bypassed it?
We know how volumes provide persistent file storage that is separate from the container filesystem, and we can use this to solve our thorny problem.
Here’s the gist. By mounting a volume in the directory where ...