Update to Rails 7 / Ruby 3.1

Signed-off-by: Fernando Martínez <fernandodev@users.noreply.github.com>
pull/323/head
Fernando Martínez 1 year ago committed by GitHub
parent e6b1d2755f
commit a2dad4509a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      official-documentation-samples/rails/README.md

@ -11,7 +11,7 @@ a file called `Dockerfile`. To begin with, the Dockerfile consists of:
```dockerfile
# syntax=docker/dockerfile:1
FROM ruby:2.5
FROM ruby:3.1
RUN apt-get update -qq && apt-get install -y nodejs postgresql-client
WORKDIR /myapp
COPY Gemfile /myapp/Gemfile
@ -37,7 +37,7 @@ Next, open an editor and create a bootstrap `Gemfile` which just loads Rails. Th
```ruby
source 'https://rubygems.org'
gem 'rails', '~>5'
gem 'rails', '~>7'
```
Create an empty `Gemfile.lock` file to build our `Dockerfile`.

Loading…
Cancel
Save