Merge pull request 'fix(docker): pin Node 22.23.4 for the image and CI (Node2Shell)' (#41) from fix/node22-node2shell into main
Reviewed-on: #41
This commit is contained in:
@@ -22,7 +22,7 @@ jobs:
|
|||||||
- name: Set up Node
|
- name: Set up Node
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '22'
|
node-version: '22.23.4'
|
||||||
cache: npm
|
cache: npm
|
||||||
|
|
||||||
- name: Install
|
- name: Install
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
# Stage 1 — build
|
# Stage 1 — build
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
FROM node:22-bookworm-slim AS build
|
FROM node:22.23.4-bookworm-slim AS build
|
||||||
|
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
|
|
||||||
@@ -54,7 +54,7 @@ RUN mkdir -p /split \
|
|||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
# Stage 2 — runtime
|
# Stage 2 — runtime
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
FROM node:22-bookworm-slim AS runtime
|
FROM node:22.23.4-bookworm-slim AS runtime
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ npm run build # → dist/ (prerendered pages + the Node server entry)
|
|||||||
npm start # serve the built site
|
npm start # serve the built site
|
||||||
```
|
```
|
||||||
|
|
||||||
Node 22 LTS or newer. Nothing else — no database, no game server, no container runtime.
|
Node 22.23.4+ (or 24.22.1+); older builds carry the Node2Shell Brotli bug, CVE-2026-111497. Nothing else — no database, no game server, no container runtime.
|
||||||
|
|
||||||
## Running it in production
|
## Running it in production
|
||||||
|
|
||||||
|
|||||||
@@ -12,14 +12,14 @@
|
|||||||
"wrong protocol number in the first place."
|
"wrong protocol number in the first place."
|
||||||
],
|
],
|
||||||
|
|
||||||
"verifiedOn": "2026-10-23",
|
"verifiedOn": "2026-10-27",
|
||||||
|
|
||||||
"$comment_moduleApi": [
|
"$comment_moduleApi": [
|
||||||
"The one version every deployment shares, whichever game it runs. D66: it is the only",
|
"The one version every deployment shares, whichever game it runs. D66: it is the only",
|
||||||
"version the homepage hero and the footer show — a protocol and a bundle belong to a game,",
|
"version the homepage hero and the footer show — a protocol and a bundle belong to a game,",
|
||||||
"so they appear on that game's own pages."
|
"so they appear on that game's own pages."
|
||||||
],
|
],
|
||||||
"moduleApi": "1.17.0",
|
"moduleApi": "1.19.0",
|
||||||
|
|
||||||
"$comment_releases": [
|
"$comment_releases": [
|
||||||
"Every repository whose release the site quotes, flat, so checkFacts.mjs reads them all",
|
"Every repository whose release the site quotes, flat, so checkFacts.mjs reads them all",
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
"Module-uo": "v1.3.0",
|
"Module-uo": "v1.3.0",
|
||||||
"Rust-Link": "v0.3.0",
|
"Rust-Link": "v0.3.0",
|
||||||
"Rust-Plugins": "v0.3.0",
|
"Rust-Plugins": "v0.3.0",
|
||||||
"Module-Rust": "v0.5.1",
|
"Module-Rust": "v0.6.0",
|
||||||
"runicnpc-rust": "v1.0.0"
|
"runicnpc-rust": "v1.0.0"
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -79,7 +79,7 @@
|
|||||||
"protocol": 14,
|
"protocol": 14,
|
||||||
"module": {
|
"module": {
|
||||||
"repo": "Module-Rust",
|
"repo": "Module-Rust",
|
||||||
"coreApi": "^1.17.0",
|
"coreApi": "^1.19.0",
|
||||||
"capabilities": ["rust", "servers", "killfeed", "leaderboard", "presence", "wipes", "identity", "map"]
|
"capabilities": ["rust", "servers", "killfeed", "leaderboard", "presence", "wipes", "identity", "map"]
|
||||||
},
|
},
|
||||||
"sidecarRepo": "Rust-Link",
|
"sidecarRepo": "Rust-Link",
|
||||||
|
|||||||
Reference in New Issue
Block a user