mirror of https://github.com/knative/docs.git
update ruby and bundle version (#2503)
* update ruby and bundle version * Update docs/serving/samples/hello-world/helloworld-ruby/Gemfile.lock Co-authored-by: Matt Moore <mattmoor@vmware.com> * update README Co-authored-by: Matt Moore <mattmoor@vmware.com>
This commit is contained in:
parent
fbf41f0422
commit
ca0a1b32da
|
@ -1,12 +1,12 @@
|
||||||
# Use the official lightweight Ruby image.
|
# Use the official lightweight Ruby image.
|
||||||
# https://hub.docker.com/_/ruby
|
# https://hub.docker.com/_/ruby
|
||||||
FROM ruby:2.5-slim
|
FROM ruby:2.6-slim
|
||||||
|
|
||||||
# Install production dependencies.
|
# Install production dependencies.
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
COPY Gemfile Gemfile.lock ./
|
COPY Gemfile Gemfile.lock ./
|
||||||
ENV BUNDLE_FROZEN=true
|
ENV BUNDLE_FROZEN=true
|
||||||
RUN bundle install
|
RUN gem install bundler && bundle install
|
||||||
|
|
||||||
# Copy local code to the container image.
|
# Copy local code to the container image.
|
||||||
COPY . ./
|
COPY . ./
|
||||||
|
|
|
@ -1,16 +1,18 @@
|
||||||
GEM
|
GEM
|
||||||
remote: https://rubygems.org/
|
remote: https://rubygems.org/
|
||||||
specs:
|
specs:
|
||||||
mustermann (1.0.2)
|
mustermann (1.1.1)
|
||||||
rack (2.0.8)
|
ruby2_keywords (~> 0.0.1)
|
||||||
rack-protection (2.0.3)
|
rack (2.2.2)
|
||||||
|
rack-protection (2.0.8.1)
|
||||||
rack
|
rack
|
||||||
sinatra (2.0.3)
|
ruby2_keywords (0.0.2)
|
||||||
|
sinatra (2.0.8.1)
|
||||||
mustermann (~> 1.0)
|
mustermann (~> 1.0)
|
||||||
rack (~> 2.0)
|
rack (~> 2.0)
|
||||||
rack-protection (= 2.0.3)
|
rack-protection (= 2.0.8.1)
|
||||||
tilt (~> 2.0)
|
tilt (~> 2.0)
|
||||||
tilt (2.0.8)
|
tilt (2.0.10)
|
||||||
|
|
||||||
PLATFORMS
|
PLATFORMS
|
||||||
ruby
|
ruby
|
||||||
|
@ -20,4 +22,4 @@ DEPENDENCIES
|
||||||
sinatra
|
sinatra
|
||||||
|
|
||||||
BUNDLED WITH
|
BUNDLED WITH
|
||||||
1.17.1
|
2.1.4
|
||||||
|
|
|
@ -48,13 +48,13 @@ cd knative-docs/docs/serving/samples/hello-world/helloworld-ruby
|
||||||
```docker
|
```docker
|
||||||
# Use the official lightweight Ruby image.
|
# Use the official lightweight Ruby image.
|
||||||
# https://hub.docker.com/_/ruby
|
# https://hub.docker.com/_/ruby
|
||||||
FROM ruby:2.5-slim
|
FROM ruby:2.6-slim
|
||||||
|
|
||||||
# Install production dependencies.
|
# Install production dependencies.
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
COPY Gemfile Gemfile.lock ./
|
COPY Gemfile Gemfile.lock ./
|
||||||
ENV BUNDLE_FROZEN=true
|
ENV BUNDLE_FROZEN=true
|
||||||
RUN bundle install
|
RUN gem install bundler && bundle install
|
||||||
|
|
||||||
# Copy local code to the container image.
|
# Copy local code to the container image.
|
||||||
COPY . ./
|
COPY . ./
|
||||||
|
|
Loading…
Reference in New Issue