mirror of
https://github.com/BigBodyCobain/Shadowbroker.git
synced 2026-12-05 17:13:45 +01:00
Move Docker images and CI to Node 24.22.1 (fixes #630)
Node 20 is end of life and will not get the CVE-2026-111497 Brotli decoder fix from the 2026-10-21 Node.js security release. The frontend image now starts from node:24.22.1-alpine, the backend image installs Node 24 from NodeSource and refuses to build on anything older than 24.22.1, and CI runs on Node 24 so tests match the shipped runtime. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
36b5470368
commit
e2f8ace1a8
3 files changed
+10
-4
No files matched your search
@@ -40,7 +40,7 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
node-version: 24
|
||||
cache: npm
|
||||
cache-dependency-path: frontend/package-lock.json
|
||||
- run: npm ci
|
||||
@@ -101,6 +101,6 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
node-version: 24
|
||||
- name: Verify portable desktop backend staging
|
||||
run: node --test desktop-shell/tauri-skeleton/scripts/build-backend-runtime.test.cjs
|
||||
+5
-1
@@ -29,10 +29,14 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
curl \
|
||||
git \
|
||||
tor \
|
||||
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
|
||||
&& curl -fsSL https://deb.nodesource.com/setup_24.x | bash - \
|
||||
&& apt-get install -y --no-install-recommends nodejs \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Node 20 is EOL. Refuse to build on a Node runtime older than 24.22.1, the
|
||||
# October 2026 security release that fixes CVE-2026-111497 (Brotli decoder).
|
||||
RUN node -e "const [a,b,c]=process.versions.node.split('.').map(Number); if (a<24||(a===24&&(b<22||(b===22&&c<1)))) { console.error('Node '+process.versions.node+' is older than 24.22.1'); process.exit(1); } console.log('Node '+process.versions.node)"
|
||||
|
||||
# Install UV for fast, reproducible Python dependency management
|
||||
ADD https://astral.sh/uv/install.sh /uv-installer.sh
|
||||
RUN sh /uv-installer.sh && rm /uv-installer.sh
|
||||
|
||||
+3
-1
@@ -1,4 +1,6 @@
|
||||
FROM node:20-alpine AS base
|
||||
# Node 24 LTS. Node 20 is EOL and never got the CVE-2026-111497 Brotli fix,
|
||||
# which shipped in 24.22.1 (Node.js security release of 2026-10-21).
|
||||
FROM node:24.22.1-alpine AS base
|
||||
|
||||
FROM base AS deps
|
||||
RUN apk add --no-cache libc6-compat
|
||||
|
||||
Reference in new issue
Block a user