DEV Community

How to use bundler 2.x with Docker

tanakaworld on June 28, 2020

You would get an error if there is bundler's version difference between BUNDLED WITH in Gemfile.lock and the installed bundler. https://dev.to/tan...
Collapse
 
andresgutgon profile image
Andrés

It works. I just had to change the Gemfile.lock COPY command

When running a fresh project Gemfile.lock is not generated to the way to copy in Docker a non-existing file is with .*


COPY Gemfile.* $APP_HOME/Gemfile.*