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:
czlonkowski
2025-07-28 09:23:23 +02:00
parent eeb73e1779
commit 23d12b4808
10 changed files with 28 additions and 10 deletions

View File

@@ -2,7 +2,7 @@
# Ultra-optimized Dockerfile - minimal runtime dependencies (no n8n packages) # Ultra-optimized Dockerfile - minimal runtime dependencies (no n8n packages)
# Stage 1: Builder (TypeScript compilation only) # Stage 1: Builder (TypeScript compilation only)
FROM node:20-alpine AS builder FROM node:22-alpine AS builder
WORKDIR /app WORKDIR /app
# Copy tsconfig for TypeScript compilation # Copy tsconfig for TypeScript compilation
@@ -22,7 +22,7 @@ COPY src ./src
RUN npx tsc RUN npx tsc
# Stage 2: Runtime (minimal dependencies) # Stage 2: Runtime (minimal dependencies)
FROM node:20-alpine AS runtime FROM node:22-alpine AS runtime
WORKDIR /app WORKDIR /app
# Install only essential runtime tools # Install only essential runtime tools

View File

@@ -2,7 +2,7 @@
# Railway-compatible Dockerfile for n8n-mcp # Railway-compatible Dockerfile for n8n-mcp
# --- Stage 1: Builder --- # --- Stage 1: Builder ---
FROM node:20-alpine AS builder FROM node:22-alpine AS builder
WORKDIR /app WORKDIR /app
# Install system dependencies for native modules # Install system dependencies for native modules
@@ -22,7 +22,7 @@ COPY src ./src
RUN npm run build RUN npm run build
# --- Stage 2: Runtime --- # --- Stage 2: Runtime ---
FROM node:20-alpine AS runtime FROM node:22-alpine AS runtime
WORKDIR /app WORKDIR /app
# Install system dependencies # Install system dependencies

View File

@@ -1,5 +1,5 @@
# Quick test Dockerfile using pre-built files # Quick test Dockerfile using pre-built files
FROM node:20-alpine FROM node:22-alpine
WORKDIR /app WORKDIR /app

View File

@@ -2,7 +2,7 @@
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![GitHub stars](https://img.shields.io/github/stars/czlonkowski/n8n-mcp?style=social)](https://github.com/czlonkowski/n8n-mcp) [![GitHub stars](https://img.shields.io/github/stars/czlonkowski/n8n-mcp?style=social)](https://github.com/czlonkowski/n8n-mcp)
[![Version](https://img.shields.io/badge/version-2.7.21-blue.svg)](https://github.com/czlonkowski/n8n-mcp) [![Version](https://img.shields.io/badge/version-2.7.22-blue.svg)](https://github.com/czlonkowski/n8n-mcp)
[![npm version](https://img.shields.io/npm/v/n8n-mcp.svg)](https://www.npmjs.com/package/n8n-mcp) [![npm version](https://img.shields.io/npm/v/n8n-mcp.svg)](https://www.npmjs.com/package/n8n-mcp)
[![n8n version](https://img.shields.io/badge/n8n-v1.103.2-orange.svg)](https://github.com/n8n-io/n8n) [![n8n version](https://img.shields.io/badge/n8n-v1.103.2-orange.svg)](https://github.com/n8n-io/n8n)
[![Docker](https://img.shields.io/badge/docker-ghcr.io%2Fczlonkowski%2Fn8n--mcp-green.svg)](https://github.com/czlonkowski/n8n-mcp/pkgs/container/n8n-mcp) [![Docker](https://img.shields.io/badge/docker-ghcr.io%2Fczlonkowski%2Fn8n--mcp-green.svg)](https://github.com/czlonkowski/n8n-mcp/pkgs/container/n8n-mcp)

Binary file not shown.

View File

@@ -24,7 +24,7 @@ services:
# Extractor service that will read from the mounted volumes # Extractor service that will read from the mounted volumes
node-extractor: node-extractor:
image: node:18-alpine image: node:22-alpine
container_name: n8n-node-extractor container_name: n8n-node-extractor
working_dir: /app working_dir: /app
depends_on: depends_on:

View File

@@ -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/), 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). 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 ## [2.7.21] - 2025-07-23
### Updated ### Updated
@@ -759,6 +774,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Basic n8n and MCP integration - Basic n8n and MCP integration
- Core workflow automation features - 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.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.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 [2.7.17]: https://github.com/czlonkowski/n8n-mcp/compare/v2.7.16...v2.7.17

View File

@@ -482,7 +482,7 @@ secrets:
### Image Details ### Image Details
- Base: `node:20-alpine` - Base: `node:22-alpine`
- Size: ~280MB compressed - Size: ~280MB compressed
- Features: Pre-built database with all node information - Features: Pre-built database with all node information
- Database: Complete SQLite with 525+ nodes - Database: Complete SQLite with 525+ nodes

View File

@@ -1,6 +1,6 @@
{ {
"name": "n8n-mcp", "name": "n8n-mcp",
"version": "2.7.21", "version": "2.7.22",
"description": "Integration between n8n workflow automation and Model Context Protocol (MCP)", "description": "Integration between n8n workflow automation and Model Context Protocol (MCP)",
"main": "dist/index.js", "main": "dist/index.js",
"bin": { "bin": {

View File

@@ -1,6 +1,6 @@
{ {
"name": "n8n-mcp-runtime", "name": "n8n-mcp-runtime",
"version": "2.7.21", "version": "2.7.22",
"description": "n8n MCP Server Runtime Dependencies Only", "description": "n8n MCP Server Runtime Dependencies Only",
"private": true, "private": true,
"dependencies": { "dependencies": {