MISMATCH: Dockerfile uses Node 20, CI uses Node 22 — inconsistent runtime #7
Labels
No labels
blocked:needs-decision
bug
chore
in-progress
security/high
security/medium
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AuWoMe/planish#7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
The production Dockerfile and the CI pipeline use different Node.js versions, which could lead to differences in behavior between CI-tested code and deployed code.
The Issue
Dockerfile(line 1):FROM node:20-alpine— production runs on Node 20.forgejo/workflows/ci.yml(lines 17, 33, 49):node-version: 22— all CI jobs use Node 22Impact
Fix
Match the versions. Either:
node:22-alpinenode-version: 20Since the Dockerfile runs
npm ci --legacy-peer-depsand the app was developed with Node 24.x locally (per build-output.log), aligning to the newer version is recommended.