Copy Gemfiles in one step

This commit is contained in:
Daniel Schädler 2019-06-20 18:40:17 +02:00
parent 6f663ff62d
commit ebd555f232
1 changed files with 1 additions and 2 deletions

View File

@ -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