How to cache bundle install with Docker
Fabiano B.
37713

This works great until I need to run bundle update to update an existing gem. When I do that, the Gemfile.lock is not updated on the host machine, so then I would end up checking in an outdated Gemfile.lock to source control.

Is there a solution to that problem, or am I missing something? Should I be running bundle update on my host machine to update the Gemfile.lock and then letting Compose dump the new Gemfile.lock into the container when I start up the app?

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.