Pin versions in `gem install`DOK-DL3028
Version pinning forces the build to retrieve a particular version regardless of what’s in the cache. This technique can also reduce failures due to unanticipated changes changes between different versions in required packages.
Bad Practice
FROM ruby:2
RUN gem install bundler
Recommended
FROM ruby:2
RUN gem install bundler:1.1