File tree 3 files changed +11
-4
lines changed
3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 1
- FROM ruby:2.6.4 -alpine
1
+ FROM ruby:2.6.6 -alpine
2
2
3
3
# Installation path
4
4
ENV HOME=/pact_broker
@@ -7,17 +7,21 @@ ENV HOME=/pact_broker
7
7
RUN set -ex && \
8
8
adduser -h $HOME -s /bin/false -D -S -G root ruby && \
9
9
chmod g+w $HOME && \
10
- apk add --update --no-cache make gcc libc-dev mariadb-dev postgresql-dev sqlite-dev
10
+ apk add --update --no-cache make gcc libc-dev mariadb-dev postgresql-dev sqlite-dev git
11
11
12
12
# Install Gems
13
13
WORKDIR $HOME
14
14
COPY pact_broker/Gemfile pact_broker/Gemfile.lock $HOME/
15
15
RUN cat Gemfile.lock | grep -A1 "BUNDLED WITH" | tail -n1 | awk '{print $1}' > BUNDLER_VERSION
16
16
RUN set -ex && \
17
17
gem install bundler -v $(cat BUNDLER_VERSION) && \
18
- bundle install --no-cache --deployment --without='development test' && \
18
+ ls /usr/local/lib/ruby/gems/2.6.0 && \
19
+ gem uninstall --install-dir /usr/local/lib/ruby/gems/2.6.0 -x rake && \
20
+ bundle config set deployment 'true' && \
21
+ bundle config set no-cache 'true' && \
22
+ bundle install --without='development test' && \
19
23
rm -rf vendor/bundle/ruby/*/cache .bundle/cache && \
20
- apk del make gcc libc-dev
24
+ apk del make gcc libc-dev git
21
25
22
26
# Install source
23
27
COPY pact_broker $HOME/
Original file line number Diff line number Diff line change @@ -5,3 +5,4 @@ gem "pg", "~>1.0"
5
5
gem "puma" , "~> 3.12"
6
6
gem "mysql2" , "~>0.3"
7
7
gem "sqlite3" , "~>1.3"
8
+ gem "rake" , "~> 13.0"
Original file line number Diff line number Diff line change 105
105
rack (2.2.3 )
106
106
rack-protection (2.0.8.1 )
107
107
rack
108
+ rake (13.0.1 )
108
109
randexp (0.1.7 )
109
110
redcarpet (3.5.0 )
110
111
reform (2.3.3 )
@@ -170,6 +171,7 @@ DEPENDENCIES
170
171
pact_broker
171
172
pg (~> 1.0 )
172
173
puma (~> 3.12 )
174
+ rake (~> 13.0 )
173
175
sqlite3 (~> 1.3 )
174
176
175
177
BUNDLED WITH
You can’t perform that action at this time.
3 commit comments
msudeepta commentedon Jul 23, 2020
Hi @bethesque , any idea when we can get this image published ?
samzee commentedon Jul 24, 2020
hi @bethesque , i am new to Github, When will the image be published with these changes? how does this process work , do we need to do anything or is it automatic, thanks.
bethesque commentedon Jul 25, 2020
It's out now. Grab
pactfoundation/pact-broker:2.58.3.0