Dockerfile builder stage pins node:23.11.1 — a non-LTS line, EOL since 2025-06-01
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 74/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- docker, nodejs
- 領域
- build-system, devops
調査の方向性
Dockerfile の builder stage から始め、現在の Node イメージの pin と Alpine suffix を確認します。依存関係をインストールした後、next build を含むイメージの完全なビルドを実行し、選択したサポート対象の Node ラインで sharp@^0.32.6 が動作するか確認します。完了の条件は、サポート対象の Node base を使用し、依存関係のドリフトなしで production image が正常にビルドできることです。
索引モデルが issue の本文から書いたものです。
説明
Summary
The builder stage of this repo's Dockerfile pins a Node line that has been out of support for over a year:
# ---------- builder ----------
FROM node:23.11.1-alpine3.21 AS builder
Verified against nodejs/Release's schedule.json:
| line | start | lts | maintenance | end of life |
|---|---|---|---|---|
| v23 | 2024-10-16 | never | 2025-04-01 | 2025-06-01 |
| v22 Jod | 2024-04-23 | 2024-10-29 | 2025-10-21 | 2027-04-30 |
| v24 Krypton | 2025-05-06 | 2025-10-28 | 2026-10-20 | 2028-04-30 |
v23 is an odd-numbered line — it was never LTS, and it went EOL on 2025-06-01. It receives no security patches, including for the bundled OpenSSL and undici.
Why this matters more than it looks
This is not a peripheral image. gofr-dev/gofr's docs/Dockerfile does:
FROM ghcr.io/gofr-dev/website:${WEBSITE_TAG} AS builder
...
RUN npm install
RUN npm run build
So this builder stage is the runtime that actually performs next build for production gofr.dev, on both the prod and stage deploy paths.
For context, gofr-dev/gofr#3870 flagged that those deploy workflows ran setup-node on Node 18 (EOL 2025-04-30), fixed in gofr-dev/gofr#3871. But setup-node there governs only the runner-side yarn install / yarn refresh-data steps — it cannot reach this pin. The build itself is on v23, which is staler than the Node 18 that issue was about, and the fix has to land here.
Suggested fix
FROM node:24-alpine AS builder
24.x is the current Active LTS (EOL 2028-04-30). 22.x also works and is supported, but has been in maintenance since 2025-10-21, so it buys ~12 months less.
Verification already done
yarn install --frozen-lockfile was run against this repo's current package.json + yarn.lock in a throwaway node:24-alpine container — Node v24.19.0, Yarn 1.22.22:
- exit 0
- lockfile satisfied, no resolution drift
- no new warnings beyond the pre-existing unmet-peer-dependency set (
@algolia/autocomplete-*,autoprefixer/postcss,ts-api-utils)
So the dependency install is known-good on 24. What is not yet verified is the full next build (Next.js 13.4.16) plus sharp@^0.32.6 on Node 24 — sharp ships native binaries and is the most likely thing to need a bump alongside this. Worth building the image locally before merging.
Note the alpine3.21 suffix can simply be dropped, letting the tag track the current Alpine base for that Node line, unless it was pinned deliberately.
- 主要言語
- JavaScript
- スター
- 44
- フォーク
- 44
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
gofr-dev/website のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
Homepage HTML shows "Trusted by 0+ Developers" to crawlers対応中かも @thzgajendra が 38 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 78/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 54/100
-
Add og:image preview cards to docs pages対応中かも @adamshatzkamer が 36 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 66/100
gofr-dev/website の issue をすべて見る
似ている issue
-
nip27: long hashtag swallows the rest of the content, lone # gives an empty hashtag対応中かも @bardrop が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
nbd-wtf/nostr-tools#578 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
h5bp/html5-boilerplate#3512 ·
-
documentation
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
githubnext/gh-aw-workshop#5752 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信