forked from External/greenlight
master #1
|
@ -1 +1 @@
|
||||||
2.5.1
|
2.7.2
|
||||||
|
|
10
Dockerfile
10
Dockerfile
|
@ -1,4 +1,4 @@
|
||||||
FROM ruby:2.5.1-alpine AS base
|
FROM ruby:2.7.2-alpine AS base
|
||||||
|
|
||||||
# Set a variable for the install location.
|
# Set a variable for the install location.
|
||||||
ARG RAILS_ROOT=/usr/src/app
|
ARG RAILS_ROOT=/usr/src/app
|
||||||
|
@ -24,9 +24,9 @@ COPY Gemfile Gemfile.lock $RAILS_ROOT/
|
||||||
|
|
||||||
RUN bundle config --global frozen 1 \
|
RUN bundle config --global frozen 1 \
|
||||||
&& bundle install --deployment --without development:test:assets -j4 --path=vendor/bundle \
|
&& bundle install --deployment --without development:test:assets -j4 --path=vendor/bundle \
|
||||||
&& rm -rf vendor/bundle/ruby/2.5.0/cache/*.gem \
|
&& rm -rf vendor/bundle/ruby/2.7.0/cache/*.gem \
|
||||||
&& find vendor/bundle/ruby/2.5.0/gems/ -name "*.c" -delete \
|
&& find vendor/bundle/ruby/2.7.0/gems/ -name "*.c" -delete \
|
||||||
&& find vendor/bundle/ruby/2.5.0/gems/ -name "*.o" -delete
|
&& find vendor/bundle/ruby/2.7.0/gems/ -name "*.o" -delete
|
||||||
|
|
||||||
# Adding project files.
|
# Adding project files.
|
||||||
COPY . .
|
COPY . .
|
||||||
|
@ -36,7 +36,7 @@ RUN rm -rf tmp/cache spec
|
||||||
|
|
||||||
############### Build step done ###############
|
############### Build step done ###############
|
||||||
|
|
||||||
FROM ruby:2.5.1-alpine
|
FROM ruby:2.7.2-alpine
|
||||||
|
|
||||||
# Set a variable for the install location.
|
# Set a variable for the install location.
|
||||||
ARG RAILS_ROOT=/usr/src/app
|
ARG RAILS_ROOT=/usr/src/app
|
||||||
|
|
Loading…
Reference in New Issue