Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

chore: migrate supported runtime to Node 24

N1arkoa39fc7d6bf38
diff --git a/.dockerignore b/.dockerignore
new file mode 100644
index 000000000..8b2ba067a
--- /dev/null
+++ b/.dockerignore
@@ -0,0 +1,11 @@
+.git
+.github
+.turbo
+**/.next
+**/.turbo
+**/coverage
+**/dist
+**/node_modules
+.env
+.env.*
+*.log
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 4e57bb528..9788bda35 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -23,7 +23,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v7
with:
- node-version: 20.20.2
+ node-version: 24.19.0
cache: pnpm
- name: Install dependencies
@@ -46,7 +46,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v7
with:
- node-version: 20.20.2
+ node-version: 24.19.0
cache: pnpm
- name: Install dependencies
@@ -69,7 +69,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v7
with:
- node-version: 20.20.2
+ node-version: 24.19.0
cache: pnpm
- name: Install dependencies
@@ -92,7 +92,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v7
with:
- node-version: 20.20.2
+ node-version: 24.19.0
cache: pnpm
- name: Install dependencies
@@ -136,7 +136,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v7
with:
- node-version: 20.20.2
+ node-version: 24.19.0
cache: pnpm
- name: Install dependencies
diff --git a/.github/workflows/deploy-site.yml b/.github/workflows/deploy-site.yml
index fc4255f52..c805b63ed 100644
--- a/.github/workflows/deploy-site.yml
+++ b/.github/workflows/deploy-site.yml
@@ -34,7 +34,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v7
with:
- node-version: "20.20.2"
+ node-version: "24.19.0"
- name: Setup pnpm
uses: pnpm/action-setup@v6
diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml
index c12541eec..5fec16c6a 100644
--- a/.github/workflows/nightly.yml
+++ b/.github/workflows/nightly.yml
@@ -53,7 +53,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v7
with:
- node-version: 20.20.2
+ node-version: 24.19.0
cache: pnpm
- name: Install dependencies
diff --git a/.github/workflows/publish-mcp.yml b/.github/workflows/publish-mcp.yml
index d46cc49e8..ff7530de1 100644
--- a/.github/workflows/publish-mcp.yml
+++ b/.github/workflows/publish-mcp.yml
@@ -36,7 +36,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v7
with:
- node-version: 24
+ node-version: 24.19.0
cache: pnpm
- name: Install dependencies
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 6313e1e13..8f04c356c 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -26,7 +26,7 @@ We want everyone to feel welcome here. Please be respectful and follow our [Code
### What You'll Need
-- **Node.js** (20.19 or newer)
+- **Node.js** (24 or newer)
- **pnpm** (we use this instead of npm/yarn)
- **Git**
- **Docker** (optional, for testing full deployments)
diff --git a/Dockerfile.kaneo b/Dockerfile.kaneo
index 6d0e6a038..7823c0b9f 100644
--- a/Dockerfile.kaneo
+++ b/Dockerfile.kaneo
@@ -1,4 +1,4 @@
-FROM --platform=$BUILDPLATFORM node:20.20.2-alpine AS api-builder
+FROM --platform=$BUILDPLATFORM node:24.19.0-alpine AS api-builder
RUN apk add --no-cache python3 make g++ && \
corepack enable && \
@@ -34,7 +34,7 @@ RUN pnpm run build
# Assembles the production node_modules on the BUILD platform (native, no QEMU emulation).
# All API runtime deps are pure JavaScript (bcrypt was replaced with bcryptjs), so this
# node_modules is architecture-independent and is copied into the runtime stage below.
-FROM --platform=$BUILDPLATFORM node:20.20.2-alpine AS api-runtime
+FROM --platform=$BUILDPLATFORM node:24.19.0-alpine AS api-runtime
WORKDIR /app
@@ -55,7 +55,7 @@ COPY --from=api-builder /app/apps/api/drizzle ./apps/api/drizzle
COPY --from=api-builder /app/packages/email ./packages/email
COPY --from=api-builder /app/packages/permissions ./packages/permissions
-FROM --platform=$BUILDPLATFORM node:20.20.2-alpine AS web-builder
+FROM --platform=$BUILDPLATFORM node:24.19.0-alpine AS web-builder
RUN apk add --no-cache python3 make g++ && \
corepack enable && \
@@ -81,9 +81,9 @@ RUN pnpm run build
WORKDIR /app/apps/web
RUN pnpm run build
-FROM node:20.20.2-alpine AS runtime
+FROM node:24.19.0-alpine AS runtime
-RUN apk add --no-cache nginx=~1.28.3 && \
+RUN apk add --no-cache nginx=~1.30.4 && \
addgroup -g 1001 appuser && \
adduser -u 1001 -G appuser -D appuser && \
mkdir -p /app /app/apps/api/data /var/cache/nginx /var/run/nginx /var/log/nginx /var/lib/nginx/logs /var/lib/nginx/tmp /usr/share/nginx/html /docker-entrypoint.d && \
diff --git a/apps/api/Dockerfile b/apps/api/Dockerfile
index b5218542c..3a604f7cd 100644
--- a/apps/api/Dockerfile
+++ b/apps/api/Dockerfile
@@ -1,5 +1,5 @@
# Build stage
-FROM --platform=$BUILDPLATFORM node:20.20.2-alpine AS builder
+FROM --platform=$BUILDPLATFORM node:24.19.0-alpine AS builder
# Install build dependencies in a single layer
RUN apk add --no-cache python3 make g++ && \
@@ -43,7 +43,7 @@ RUN sed -i 's/"extends": "@kaneo\/typescript-config\/base.json"/"extends": "..\/
# Production dependencies stage - runs on the BUILD platform (native, no QEMU emulation).
# All API runtime deps are pure JavaScript (bcrypt was replaced with bcryptjs), so the
# resulting node_modules is architecture-independent and safe to copy into the arm64 runtime.
-FROM --platform=$BUILDPLATFORM node:20.20.2-alpine AS prod-deps
+FROM --platform=$BUILDPLATFORM node:24.19.0-alpine AS prod-deps
RUN corepack enable && corepack prepare [email protected] --activate
@@ -60,7 +60,7 @@ RUN sed -i 's/"prepare": "husky"/"prepare": ""/g' package.json && \
HUSKY=0 NODE_ENV=production pnpm install --prod --frozen-lockfile --no-optional
# Production stage - use specific version tag without SHA256
-FROM node:20.20.2-alpine AS runtime
+FROM node:24.19.0-alpine AS runtime
# Set up user in a single layer
RUN addgroup -g 1001 appuser && \
diff --git a/apps/web/Dockerfile b/apps/web/Dockerfile
index b06fb491d..a65da26ae 100644
--- a/apps/web/Dockerfile
+++ b/apps/web/Dockerfile
@@ -1,5 +1,5 @@
# Build stage
-FROM --platform=$BUILDPLATFORM node:20-alpine AS builder
+FROM --platform=$BUILDPLATFORM node:24.19.0-alpine AS builder
# Install build dependencies in a single layer
RUN apk add --no-cache python3 make g++ && \
diff --git a/compose.local.yml b/compose.local.yml
index 88e1abb0c..2618745fd 100644
--- a/compose.local.yml
+++ b/compose.local.yml
@@ -46,7 +46,7 @@ services:
restart: unless-stopped
docs:
- image: node:20-alpine
+ image: node:24.19.0-alpine
working_dir: /app/apps/docs
command: sh -c "npm install -g mintlify && mintlify dev --disable-openapi"
ports:
diff --git a/package.json b/package.json
index 78ac923ce..427d86dcd 100644
--- a/package.json
+++ b/package.json
@@ -28,7 +28,7 @@
"typescript": "7.0.2"
},
"engines": {
- "node": ">=20.19.0"
+ "node": ">=24.0.0"
},
"packageManager": "[email protected]",
"version": "2.18.0",