Skip to content

Commit 3d025b6

Browse files
authored
[ruby] Copy Gemfile.lock in docker (#10132)
This makes sure the gem versions in the lock file are used, resulting in more predictable runs.
1 parent 31c1afb commit 3d025b6

File tree

10 files changed

+10
-8
lines changed

10 files changed

+10
-8
lines changed

frameworks/Ruby/agoo/agoo.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ENV LD_PRELOAD=libjemalloc.so.2
1515

1616
WORKDIR /rack
1717

18-
COPY Gemfile app.rb ./
18+
COPY Gemfile* app.rb ./
1919

2020
RUN bundle install --jobs=4
2121

frameworks/Ruby/padrino/padrino-unicorn.dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ COPY models models
77
COPY .components .components
88
COPY config.ru config.ru
99
COPY Gemfile Gemfile
10+
COPY Gemfile.lock Gemfile.lock
1011
COPY Rakefile Rakefile
1112

1213
RUN bundle config set with 'unicorn'

frameworks/Ruby/padrino/padrino.dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ COPY models models
77
COPY .components .components
88
COPY config.ru config.ru
99
COPY Gemfile Gemfile
10+
COPY Gemfile.lock Gemfile.lock
1011
COPY Rakefile Rakefile
1112

1213
RUN bundle config set with 'puma'

frameworks/Ruby/rack/rack-falcon.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ENV LD_PRELOAD=libjemalloc.so.2
99

1010
WORKDIR /rack
1111

12-
COPY Gemfile ./
12+
COPY Gemfile* ./
1313

1414
ENV BUNDLE_FORCE_RUBY_PLATFORM=true
1515
RUN bundle config set with 'falcon'

frameworks/Ruby/rack/rack-iodine.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ENV LD_PRELOAD=libjemalloc.so.2
99

1010
WORKDIR /rack
1111

12-
COPY Gemfile ./
12+
COPY Gemfile* ./
1313

1414
ENV BUNDLE_FORCE_RUBY_PLATFORM=true
1515
RUN bundle config set with 'iodine'

frameworks/Ruby/rack/rack-jruby.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ RUN apt-get update -y && apt-get install netbase -y
44

55
WORKDIR /rack
66

7-
COPY Gemfile ./
7+
COPY Gemfile* ./
88

99
RUN bundle config set with 'puma'
1010
RUN bundle install --jobs=8

frameworks/Ruby/rack/rack-passenger.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ENV LD_PRELOAD=libjemalloc.so.2
99

1010
WORKDIR /rack
1111

12-
COPY Gemfile ./
12+
COPY Gemfile* ./
1313

1414
ENV BUNDLE_FORCE_RUBY_PLATFORM=true
1515
RUN bundle config set with 'passenger'

frameworks/Ruby/rack/rack-pitchfork.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ENV LD_PRELOAD=libjemalloc.so.2
99

1010
WORKDIR /rack
1111

12-
COPY Gemfile ./
12+
COPY Gemfile* ./
1313

1414
ENV BUNDLE_FORCE_RUBY_PLATFORM=true
1515
RUN bundle config set with 'pitchfork'

frameworks/Ruby/rack/rack-unicorn.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ENV LD_PRELOAD=libjemalloc.so.2
99

1010
WORKDIR /rack
1111

12-
COPY Gemfile ./
12+
COPY Gemfile* ./
1313

1414
ENV BUNDLE_FORCE_RUBY_PLATFORM=true
1515
RUN bundle config set with 'unicorn'

frameworks/Ruby/rack/rack.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ENV LD_PRELOAD=libjemalloc.so.2
1010

1111
WORKDIR /rack
1212

13-
COPY Gemfile ./
13+
COPY Gemfile* ./
1414

1515
ENV BUNDLE_FORCE_RUBY_PLATFORM=true
1616
RUN bundle config set with 'puma'

0 commit comments

Comments
 (0)