From dd6baf35b9090d59ea27f1cdecd9bb65ecaec151 Mon Sep 17 00:00:00 2001 From: Malaber <32635600+Malaber@users.noreply.github.com> Date: Thu, 20 Jun 2019 18:40:17 +0200 Subject: [PATCH] Copy Gemfiles in one step --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b3035ca..4305b36 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,7 @@ FROM ruby:2.6.2-alpine RUN apk add --no-cache build-base tzdata sqlite sqlite-dev postgresql-dev && gem install tzinfo-data WORKDIR /app -COPY Gemfile /app/Gemfile -COPY Gemfile.lock /app/Gemfile.lock +COPY Gemfile* /app/ RUN bundle install --deployment --without development test COPY . /app ENV RAILS_ENV production