Skip to content

Commit 0345834

Browse files
committed
⬆️ Ruby 4.0.0
1 parent c66f496 commit 0345834

File tree

7 files changed

+15
-12
lines changed

7 files changed

+15
-12
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ concurrency:
1313
cancel-in-progress: true
1414

1515
env:
16-
TAG_NAME: 3.4.8-alpine
16+
TAG_NAME: 4.0.0-alpine
1717

1818
jobs:
1919
build:

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.4.8
1+
4.0.0

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ It uses [multi-stage building](https://docs.docker.com/develop/develop-images/mu
4444

4545
The `builder` stage installs Ruby gems and Node modules. It also includes Git, Node.js and some build tools - all we need to compile assets.
4646

47-
- Based on [ruby:3.4.8-alpine](https://github.com/docker-library/ruby/blob/master/3.4/alpine3.23/Dockerfile)
47+
- Based on [ruby:4.0.0-alpine](https://github.com/docker-library/ruby/blob/master/4.0/alpine3.23/Dockerfile)
4848
- Adds packages needed for installing gems and compiling assets: Git, Node.js, PostgreSQL client and build tools
4949
- Adds some default Ruby gems (Rails 8.0 etc., see [Gemfile](./builder/Gemfile))
5050
- Via ONBUILD triggers it installs missing gems and Node modules, then compiles the assets
@@ -59,7 +59,7 @@ See [builder/Dockerfile](./builder/Dockerfile)
5959

6060
The `final` stage builds the production image, which includes just the bare minimum.
6161

62-
- Based on [ruby:3.4.8-alpine](https://github.com/docker-library/ruby/blob/master/3.4/alpine3.23/Dockerfile)
62+
- Based on [ruby:4.0.0-alpine](https://github.com/docker-library/ruby/blob/master/4.0/alpine3.23/Dockerfile)
6363
- Adds packages needed for production: postgresql-client, tzdata, file
6464
- Via ONBUILD triggers it mainly copies the app and gems from the `builder` stage
6565

@@ -76,8 +76,8 @@ Using [Dependabot](https://dependabot.com/), every updated Ruby gem results in a
7676
Add this `Dockerfile` to your application:
7777

7878
```Dockerfile
79-
FROM ghcr.io/ledermann/rails-base-builder:3.4.8-alpine AS builder
80-
FROM ghcr.io/ledermann/rails-base-final:3.4.8-alpine
79+
FROM ghcr.io/ledermann/rails-base-builder:4.0.0-alpine AS builder
80+
FROM ghcr.io/ledermann/rails-base-final:4.0.0-alpine
8181
USER app
8282
# Optional: Enable YJIT
8383
# ENV RUBY_YJIT_ENABLE=1
@@ -167,6 +167,7 @@ When a new Ruby version comes out, a new tag is introduced and the images will b
167167

168168
| Ruby version | Tag | First published |
169169
| ------------ | ------------ | --------------- |
170+
| 4.0.0 | 4.0.0-alpine | 2025-12-28 |
170171
| 3.4.8 | 3.4.8-alpine | 2025-12-18 |
171172
| 3.4.7 | 3.4.7-alpine | 2025-10-09 |
172173
| 3.4.6 | 3.4.6-alpine | 2025-09-17 |

builder/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# syntax=docker/dockerfile:1
22
# check=error=true
33

4-
FROM ruby:3.4.8-alpine
4+
FROM ruby:4.0.0-alpine
55
LABEL maintainer="georg@ledermann.dev"
66

77
# Add basic packages

builder/Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
source 'https://rubygems.org'
22
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
33

4-
ruby '3.4.8'
4+
ruby '4.0.0'
55

66
# Full-stack web application framework. (https://rubyonrails.org)
77
gem 'rails', '~> 8.1.0'

builder/Gemfile.lock

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ GEM
9999
dry-cli (1.3.0)
100100
erb (6.0.1)
101101
erubi (1.13.1)
102+
ffi (1.17.2)
102103
ffi (1.17.2-aarch64-linux-musl)
103104
ffi (1.17.2-arm64-darwin)
104105
ffi (1.17.2-x86_64-linux-gnu)
@@ -182,6 +183,7 @@ GEM
182183
pagy (43.2.2)
183184
json
184185
yaml
186+
pg (1.6.2)
185187
pg (1.6.2-aarch64-linux-musl)
186188
pg (1.6.2-arm64-darwin)
187189
pg (1.6.2-x86_64-linux)
@@ -342,7 +344,7 @@ GEM
342344

343345
PLATFORMS
344346
aarch64-linux-musl
345-
arm64-darwin-25
347+
arm64-darwin
346348
x86_64-linux
347349
x86_64-linux-musl
348350

@@ -377,7 +379,7 @@ DEPENDENCIES
377379
vite_rails
378380

379381
RUBY VERSION
380-
ruby 3.4.8
382+
ruby 4.0.0
381383

382384
BUNDLED WITH
383-
4.0.2
385+
4.0.3

final/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# syntax=docker/dockerfile:1
22
# check=error=true
33

4-
FROM ruby:3.4.8-alpine
4+
FROM ruby:4.0.0-alpine
55
LABEL maintainer="georg@ledermann.dev"
66

77
# Add basic packages

0 commit comments

Comments
 (0)