This makes sure the gem versions in the lock file are used, resulting in more predictable runs.
@@ -15,7 +15,7 @@ ENV LD_PRELOAD=libjemalloc.so.2
WORKDIR /rack
-COPY Gemfile app.rb ./
+COPY Gemfile* app.rb ./
RUN bundle install --jobs=4
@@ -7,6 +7,7 @@ COPY models models
COPY .components .components
COPY config.ru config.ru
COPY Gemfile Gemfile
+COPY Gemfile.lock Gemfile.lock
COPY Rakefile Rakefile
RUN bundle config set with 'unicorn'
RUN bundle config set with 'puma'
@@ -9,7 +9,7 @@ ENV LD_PRELOAD=libjemalloc.so.2
-COPY Gemfile ./
+COPY Gemfile* ./
ENV BUNDLE_FORCE_RUBY_PLATFORM=true
RUN bundle config set with 'falcon'
RUN bundle config set with 'iodine'
@@ -4,7 +4,7 @@ RUN apt-get update -y && apt-get install netbase -y
RUN bundle install --jobs=8
RUN bundle config set with 'passenger'
RUN bundle config set with 'pitchfork'
@@ -10,7 +10,7 @@ ENV LD_PRELOAD=libjemalloc.so.2