Pattern: Unpinned version in gem install
Issue: -
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 in required packages.
Example of incorrect code:
FROM ruby:2
RUN gem install bundler
Example of correct code:
FROM ruby:2
RUN gem install bundler:1.1