mirror of
https://github.com/caprover/caprover
synced 2026-08-23 16:06:45 +00:00
Upgrade Node.js to 24
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
@@ -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,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,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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user