We recently wrote a blog post about a script that updates version strings in a Dockerfile . We’ve since identified a better way to achieve the same goals. A Rails application will have gem dependencies listed in files called Gemfile and a Gemfile.lock .