Upgrade Node.js to 24

This commit is contained in:
Kasra Bigdeli
2026-08-04 21:06:32 -07:00
parent c2a01b09f6
commit aca08cd409
11 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 22
node-version: 24
- run: |
sudo bash -c "mkdir /captain && chown -R `whoami` /captain"
npm ci
+1 -1
View File
@@ -15,5 +15,5 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 22
node-version: 24
- run: npm ci && npm run formatter
+1 -1
View File
@@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 22
node-version: 24
- run: |
sudo bash -c "mkdir /captain && chown -R `whoami` /captain"
npm ci
+1 -1
View File
@@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 22
node-version: 24
- run: |
sudo bash -c "mkdir /captain && chown -R `whoami` /captain"
npm ci
+1 -1
View File
@@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 22
node-version: 24
- run: |
sudo bash -c "mkdir /captain && chown -R `whoami` /captain"
npm ci
+1 -1
View File
@@ -31,7 +31,7 @@ The frontend is maintained in `caprover/caprover-frontend`. User-facing document
## Validation
Use Node.js 22.
Use Node.js 24.
```bash
npm ci
+1 -1
View File
@@ -64,7 +64,7 @@ Link this folder to the root folder (Apple does not allow to create folder on th
#####
use node 22 then
use node 24 then
```bash
$ npm install
+1 -1
View File
@@ -1,4 +1,4 @@
FROM node:22
FROM node:24
RUN apt-get update && apt-get full-upgrade -yqq && apt-get install build-essential cmake -yqq
RUN apt-get -y install netcat-traditional socat
+1 -1
View File
@@ -1,4 +1,4 @@
FROM node:22-alpine
FROM node:24-alpine
RUN apk update && apk upgrade --no-cache && apk add --update --no-cache make gcc g++ git curl openssl openssh
RUN mkdir -p /usr/src/app
+3 -3
View File
@@ -1,5 +1,5 @@
# Build stage runs on the host platform to avoid QEMU SIGILL issues with Node.js 22 on arm64
FROM --platform=$BUILDPLATFORM node:22-alpine AS builder
# Build stage runs on the host platform to avoid QEMU SIGILL issues with Node.js 24 on arm64
FROM --platform=$BUILDPLATFORM node:24-alpine AS builder
RUN apk add --update --no-cache make gcc g++ git curl openssl
WORKDIR /usr/src/app
@@ -13,7 +13,7 @@ RUN npm ci && \
mv ./edge-override.json ./config-override.json
# Final stage uses the target platform's Node.js runtime
FROM node:22-alpine
FROM node:24-alpine
RUN apk add --update --no-cache git curl openssl openssh
WORKDIR /usr/src/app
+3 -3
View File
@@ -1,5 +1,5 @@
# Build stage runs on the host platform to avoid QEMU SIGILL issues with Node.js 22 on arm64
FROM --platform=$BUILDPLATFORM node:22-alpine AS builder
# Build stage runs on the host platform to avoid QEMU SIGILL issues with Node.js 24 on arm64
FROM --platform=$BUILDPLATFORM node:24-alpine AS builder
RUN apk add --update --no-cache make gcc g++ git curl openssl
WORKDIR /usr/src/app
@@ -12,7 +12,7 @@ RUN npm ci && \
npm cache clean --force
# Final stage uses the target platform's Node.js runtime
FROM node:22-alpine
FROM node:24-alpine
RUN apk add --update --no-cache git curl openssl openssh
WORKDIR /usr/src/app