From ebd555f2326d81dbeb8787f5673af9857eb852e1 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