fix: upgrade Node to 24 so the Docker build works with sharp 0.35 #3

Merged
Patryk-Kuchta merged 2 commits from fix-docker-node-24 into main 2026-10-19 18:40:05 +00:00
4 changed files with 8 additions and 11 deletions

No files matched your search

+3 -5
View File
@@ -26,12 +26,10 @@ jobs:
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: '18' node-version: '24'
- name: Setup pnpm - name: Setup pnpm
uses: pnpm/action-setup@v4 run: corepack enable
with:
version: 10
- name: Get pnpm store directory - name: Get pnpm store directory
shell: bash shell: bash
@@ -60,7 +58,7 @@ jobs:
run: pnpm outdated || true run: pnpm outdated || true
- name: Upload security report - name: Upload security report
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
if: always() if: always()
with: with:
name: security-report name: security-report
+2 -4
View File
@@ -24,12 +24,10 @@ jobs:
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: '18' node-version: '24'
- name: Setup pnpm - name: Setup pnpm
uses: pnpm/action-setup@v4 run: corepack enable
with:
version: 10
- name: Get pnpm store directory - name: Get pnpm store directory
shell: bash shell: bash
+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 apk add --no-cache libc6-compat
RUN corepack enable && corepack prepare [email protected] --activate RUN corepack enable && corepack prepare [email protected] --activate
+2 -1
View File
@@ -2,6 +2,7 @@
"name": "new_portfolio", "name": "new_portfolio",
"version": "0.1.0", "version": "0.1.0",
"private": true, "private": true,
"packageManager": "[email protected]",
"scripts": { "scripts": {
"dev": "next dev -p 4000", "dev": "next dev -p 4000",
"build": "next build", "build": "next build",
@@ -40,7 +41,7 @@
"sass": "^1.105.2" "sass": "^1.105.2"
}, },
"engines": { "engines": {
"node": ">=18.0.0", "node": ">=20.9.0",
"pnpm": ">=8.0.0" "pnpm": ">=8.0.0"
}, },
"pnpm": { "pnpm": {