chore: upgrade Docker base images to Node.js 22 LTS Alpine (v2.7.22)
- Updated all Dockerfiles from node:20-alpine to node:22-alpine - Addresses known vulnerabilities in older Alpine images - Provides better long-term support with Node.js 22 LTS (until April 2027) - Updated documentation to reflect new base image version - Tested and verified compatibility with all dependencies 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
# Ultra-optimized Dockerfile - minimal runtime dependencies (no n8n packages)
|
||||
|
||||
# Stage 1: Builder (TypeScript compilation only)
|
||||
FROM node:20-alpine AS builder
|
||||
FROM node:22-alpine AS builder
|
||||
WORKDIR /app
|
||||
|
||||
# Copy tsconfig for TypeScript compilation
|
||||
@@ -22,7 +22,7 @@ COPY src ./src
|
||||
RUN npx tsc
|
||||
|
||||
# Stage 2: Runtime (minimal dependencies)
|
||||
FROM node:20-alpine AS runtime
|
||||
FROM node:22-alpine AS runtime
|
||||
WORKDIR /app
|
||||
|
||||
# Install only essential runtime tools
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Railway-compatible Dockerfile for n8n-mcp
|
||||
|
||||
# --- Stage 1: Builder ---
|
||||
FROM node:20-alpine AS builder
|
||||
FROM node:22-alpine AS builder
|
||||
WORKDIR /app
|
||||
|
||||
# Install system dependencies for native modules
|
||||
@@ -22,7 +22,7 @@ COPY src ./src
|
||||
RUN npm run build
|
||||
|
||||
# --- Stage 2: Runtime ---
|
||||
FROM node:20-alpine AS runtime
|
||||
FROM node:22-alpine AS runtime
|
||||
WORKDIR /app
|
||||
|
||||
# Install system dependencies
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Quick test Dockerfile using pre-built files
|
||||
FROM node:20-alpine
|
||||
FROM node:22-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
[](https://opensource.org/licenses/MIT)
|
||||
[](https://github.com/czlonkowski/n8n-mcp)
|
||||
[](https://github.com/czlonkowski/n8n-mcp)
|
||||
[](https://github.com/czlonkowski/n8n-mcp)
|
||||
[](https://www.npmjs.com/package/n8n-mcp)
|
||||
[](https://github.com/n8n-io/n8n)
|
||||
[](https://github.com/czlonkowski/n8n-mcp/pkgs/container/n8n-mcp)
|
||||
|
||||
BIN
data/nodes.db
BIN
data/nodes.db
Binary file not shown.
@@ -24,7 +24,7 @@ services:
|
||||
|
||||
# Extractor service that will read from the mounted volumes
|
||||
node-extractor:
|
||||
image: node:18-alpine
|
||||
image: node:22-alpine
|
||||
container_name: n8n-node-extractor
|
||||
working_dir: /app
|
||||
depends_on:
|
||||
|
||||
@@ -5,6 +5,21 @@ All notable changes to this project will be documented in this file.
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [2.7.22] - 2025-07-28
|
||||
|
||||
### Security
|
||||
- **Docker base images**: Updated from Node.js 20 Alpine to Node.js 22 LTS Alpine
|
||||
- Addresses known vulnerabilities in older Alpine images
|
||||
- Provides better long-term support with Node.js 22 LTS (supported until April 2027)
|
||||
- All Dockerfiles updated: `Dockerfile`, `Dockerfile.railway`, `Dockerfile.test`
|
||||
- Docker Compose extractor service updated to use Node.js 22
|
||||
- Documentation updated to reflect new base image version
|
||||
|
||||
### Compatibility
|
||||
- Tested and verified compatibility with Node.js 22 LTS
|
||||
- All dependencies work correctly with the new Node.js version
|
||||
- Docker builds complete successfully with improved security posture
|
||||
|
||||
## [2.7.21] - 2025-07-23
|
||||
|
||||
### Updated
|
||||
@@ -759,6 +774,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
- Basic n8n and MCP integration
|
||||
- Core workflow automation features
|
||||
|
||||
[2.7.22]: https://github.com/czlonkowski/n8n-mcp/compare/v2.7.21...v2.7.22
|
||||
[2.7.21]: https://github.com/czlonkowski/n8n-mcp/compare/v2.7.20...v2.7.21
|
||||
[2.7.20]: https://github.com/czlonkowski/n8n-mcp/compare/v2.7.19...v2.7.20
|
||||
[2.7.19]: https://github.com/czlonkowski/n8n-mcp/compare/v2.7.18...v2.7.19
|
||||
[2.7.18]: https://github.com/czlonkowski/n8n-mcp/compare/v2.7.17...v2.7.18
|
||||
[2.7.17]: https://github.com/czlonkowski/n8n-mcp/compare/v2.7.16...v2.7.17
|
||||
|
||||
@@ -482,7 +482,7 @@ secrets:
|
||||
|
||||
### Image Details
|
||||
|
||||
- Base: `node:20-alpine`
|
||||
- Base: `node:22-alpine`
|
||||
- Size: ~280MB compressed
|
||||
- Features: Pre-built database with all node information
|
||||
- Database: Complete SQLite with 525+ nodes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "n8n-mcp",
|
||||
"version": "2.7.21",
|
||||
"version": "2.7.22",
|
||||
"description": "Integration between n8n workflow automation and Model Context Protocol (MCP)",
|
||||
"main": "dist/index.js",
|
||||
"bin": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "n8n-mcp-runtime",
|
||||
"version": "2.7.21",
|
||||
"version": "2.7.22",
|
||||
"description": "n8n MCP Server Runtime Dependencies Only",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
|
||||
Reference in New Issue
Block a user