the dockerfile installs gems by calling bundle install. this installs gems from all groups listed in the gemfile. for production deploys, only production gems should be installed. see: https://bundler.io/man/bundle-install.1.html#DEPLOYMENT-MODE
this can speed up ci builds and reduce the likelihood of issues on build & deploy.