fix: upgrade Node to 24 so the Docker build works with sharp 0.35
Security Audit / Security Vulnerability Scan (pull_request) Failing after 13s
Code Quality Check / Lint & Type Check (pull_request) Failing after 13s

sharp 0.35.5 requires Node >=20.9.0, so the node:18-alpine image failed
to load the linuxmusl-arm64 binary and the production build broke.

Move the image and both CI workflows to Node 24 (current Active LTS),
raise the engines floor to the version sharp actually needs, and declare
packageManager to silence the corepack warning.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
This commit is contained in:
Patryk-KuchtaandClaude Opus 5 committed 2026-10-19 19:37:21 +01:00
1 parent 8914a92bcc
commit ab7b2fa6f4
4 files changed
+5 -4

No files matched your search

+1 -1
View File
@@ -26,7 +26,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '24'
- name: Setup pnpm
uses: pnpm/action-setup@v4
+1 -1
View File
@@ -24,7 +24,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '24'
- name: Setup pnpm
uses: pnpm/action-setup@v4
+1 -1
View File
@@ -1,4 +1,4 @@
FROM node:18-alpine AS base
FROM node:24-alpine AS base
RUN apk add --no-cache libc6-compat
RUN corepack enable && corepack prepare [email protected] --activate
+2 -1
View File
@@ -2,6 +2,7 @@
"name": "new_portfolio",
"version": "0.1.0",
"private": true,
"packageManager": "[email protected]",
"scripts": {
"dev": "next dev -p 4000",
"build": "next build",
@@ -40,7 +41,7 @@
"sass": "^1.105.2"
},
"engines": {
"node": ">=18.0.0",
"node": ">=20.9.0",
"pnpm": ">=8.0.0"
},
"pnpm": {