1
0
Fork 0
mirror of https://github.com/docker/awesome-compose.git synced 2025-04-19 23:38:06 +02:00

Update Ruby, Rails Version

Update ruby version to 3.1, rails version to 7.1

Signed-off-by: Chang-Woo Rhee <x1wins@changwoo.net>
This commit is contained in:
Chang-Woo Rhee 2024-02-05 15:16:36 -08:00 committed by GitHub
parent e6b1d2755f
commit 38ee3b8779
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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`.