Skip to content

Commit

Permalink
chore: ensure matching bundler version is used in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Jul 20, 2020
1 parent 4cec522 commit 13d81e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ RUN set -ex && \
# Install Gems
WORKDIR $HOME
COPY pact_broker/Gemfile pact_broker/Gemfile.lock $HOME/
RUN cat Gemfile.lock | grep -A1 "BUNDLED WITH" | tail -n1 | awk '{print $1}' > BUNDLER_VERSION
RUN set -ex && \
gem install bundler -v 2.1.4 && \
gem install bundler -v $(cat BUNDLER_VERSION) && \
bundle install --no-cache --deployment --without='development test' && \
rm -rf vendor/bundle/ruby/*/cache .bundle/cache && \
apk del make gcc libc-dev
Expand Down

0 comments on commit 13d81e4

Please sign in to comment.