mirror of
https://github.com/docker-library/ruby.git
synced 2022-11-09 11:41:34 -05:00
Generalize FROM so updates flow easier
This commit is contained in:
parent
de575f3b8e
commit
5d04363db6
4 changed files with 4 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
FROM ruby:2.0.0-p647
|
||||
FROM ruby:2.0
|
||||
|
||||
# throw errors if Gemfile has been modified since Gemfile.lock
|
||||
RUN bundle config --global frozen 1
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM ruby:2.1.7
|
||||
FROM ruby:2.1
|
||||
|
||||
# throw errors if Gemfile has been modified since Gemfile.lock
|
||||
RUN bundle config --global frozen 1
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM ruby:2.2.3
|
||||
FROM ruby:2.2
|
||||
|
||||
# throw errors if Gemfile has been modified since Gemfile.lock
|
||||
RUN bundle config --global frozen 1
|
||||
|
|
|
@ -33,6 +33,6 @@ for version in "${versions[@]}"; do
|
|||
s/^(ENV BUNDLER_VERSION) .*/\1 '"$bundler"'/;
|
||||
s/^(ENV RUBYGEMS_VERSION) .*/\1 '"$rubygems"'/;
|
||||
' "$version/"{,slim/}Dockerfile
|
||||
sed -ri 's/^(FROM ruby):.*/\1:'"$fullVersion"'/' "$version/"*"/Dockerfile"
|
||||
sed -ri 's/^(FROM ruby):.*/\1:'"$version"'/' "$version/"*"/Dockerfile"
|
||||
)
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue