UPDATE: We’ve come up with a potentially better way to achieve the same goal, by using a new Gemfile.initial file. See the new post here. I wrote a small script that can sync _VERSION environment variables in a Dockerfile with versions from Gemfile.lock