Skip to content

Commit 873a8f7

Browse files
committedFeb 3, 2022
feat(deps): update base image to ruby 2.7.5 and bundler to 2.3.6
1 parent c4ba595 commit 873a8f7

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed
 

‎Dockerfile

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ruby:2.6.8-alpine3.13
1+
FROM ruby:2.7.5-alpine3.13
22

33
ENV SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/v0.1.11/supercronic-linux-amd64 \
44
SUPERCRONIC=supercronic-linux-amd64 \
@@ -26,16 +26,18 @@ RUN set -ex && \
2626
apk add --update --no-cache make gcc libc-dev mariadb-dev postgresql-dev sqlite-dev git && \
2727
apk upgrade && \
2828
gem install bundler -v $(cat BUNDLER_VERSION) && \
29-
ls /usr/local/lib/ruby/gems/2.6.0 && \
30-
gem install rdoc -v "6.3.2" --install-dir /usr/local/lib/ruby/gems/2.6.0 && \
31-
gem uninstall --install-dir /usr/local/lib/ruby/gems/2.6.0 -x rake && \
29+
ls /usr/local/lib/ruby/gems/2.7.0 && \
30+
gem install rdoc -v "6.3.2" --install-dir /usr/local/lib/ruby/gems/2.7.0 && \
31+
gem uninstall --install-dir /usr/local/lib/ruby/gems/2.7.0 -x rake && \
3232
find /usr/local/lib/ruby -name webrick* -exec rm -rf {} + && \
3333
find /usr/local/lib/ruby -name rdoc-6.1* -exec rm -rf {} + && \
3434
bundle config set deployment 'true' && \
3535
bundle config set no-cache 'true' && \
3636
bundle config set without 'development test' && \
3737
bundle install && \
3838
rm -rf vendor/bundle/ruby/*/cache .bundle/cache && \
39+
find /usr/local/bundle/gems/ -name *.pem | grep -e sample -e test | xargs rm -rf {} + && \
40+
find /usr/local/bundle/gems/ -name *.key | grep -e sample -e test | xargs rm -rf {} + && \
3941
apk del make gcc libc-dev git
4042

4143
# Install source

‎pact_broker/Gemfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -179,4 +179,4 @@ DEPENDENCIES
179179
webrick (~> 1.6)
180180

181181
BUNDLED WITH
182-
2.2.10
182+
2.3.6

0 commit comments

Comments
 (0)