diff --git a/Dockerfile b/Dockerfile index c163a34..23c0d32 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,7 +24,7 @@ RUN apk update \ && bundler -v \ && bundle config build.nokogiri --use-system-libraries \ && bundle config git.allow_insecure true \ - && gem update --system 3.5.20 \ + && gem update --system 3.5.23 \ && gem install json -v "~>2.7.6" \ && gem install bigdecimal -v "~>3.1" \ && gem install racc -v "~>1.8" \ diff --git a/Dockerfile-bundle-base b/Dockerfile-bundle-base index 550050b..a3c43ba 100644 --- a/Dockerfile-bundle-base +++ b/Dockerfile-bundle-base @@ -20,7 +20,7 @@ RUN apk update \ ruby-rdoc \ && bundle config build.nokogiri --use-system-libraries \ && bundle config git.allow_insecure true \ - && gem update --system 3.5.20 \ + && gem update --system 3.5.23 \ && gem install json \ && gem install bigdecimal \ && gem install racc \ @@ -32,4 +32,6 @@ WORKDIR $HOME ADD pact-cli.gemspec Gemfile Gemfile.lock $HOME/ ADD lib/pact/cli/version.rb $HOME/lib/pact/cli/version.rb -RUN bundle install --without test development +RUN bundle config set without 'test development' \ + bundle config set deployment 'true' \ + && bundle install diff --git a/Dockerfile-node b/Dockerfile-node index 299f0e1..64d8f18 100644 --- a/Dockerfile-node +++ b/Dockerfile-node @@ -33,7 +33,7 @@ RUN apk update \ && bundle config build.nokogiri --use-system-libraries \ && bundle config git.allow_insecure true \ && gem update --system 3.5.20 \ - && gem install json -v "~>2.3" \ + && gem install json -v "~>2.7.6" \ && gem install bigdecimal -v "~>3.1" \ && gem install racc -v "~>1.8" \ && gem uninstall rubygems-update \ @@ -52,7 +52,9 @@ ADD pact-cli.gemspec . ADD Gemfile . ADD Gemfile.lock . ADD lib/pact/cli/version.rb ./lib/pact/cli/version.rb -RUN bundle install --without test development --deployment true \ +RUN bundle config set without 'test development' \ + bundle config set deployment 'true' \ + && bundle install \ && find /usr/lib/ruby/gems/3.3.0/gems -name Gemfile.lock -maxdepth 2 -delete ADD docker/entrypoint.sh $HOME/entrypoint.sh ADD bin ./bin