Copy Gemfiles in one step
This commit is contained in:
parent
ab37922698
commit
dd6baf35b9
|
|
@ -1,8 +1,7 @@
|
||||||
FROM ruby:2.6.2-alpine
|
FROM ruby:2.6.2-alpine
|
||||||
RUN apk add --no-cache build-base tzdata sqlite sqlite-dev postgresql-dev && gem install tzinfo-data
|
RUN apk add --no-cache build-base tzdata sqlite sqlite-dev postgresql-dev && gem install tzinfo-data
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY Gemfile /app/Gemfile
|
COPY Gemfile* /app/
|
||||||
COPY Gemfile.lock /app/Gemfile.lock
|
|
||||||
RUN bundle install --deployment --without development test
|
RUN bundle install --deployment --without development test
|
||||||
COPY . /app
|
COPY . /app
|
||||||
ENV RAILS_ENV production
|
ENV RAILS_ENV production
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue