- Update n8n version from v1.97.1 to v1.99.1 in README - Fix 7 broken documentation links to point to existing files - Standardize Docker image size to ~280MB across all docs (was inconsistent: 150MB/200MB/283MB) - Add missing npm scripts for test commands (test:essentials, test:enhanced-validation, etc.) - Update CHANGELOG.md with missing versions 2.4.0 through 2.5.1 - Update README_CLAUDE_SETUP.md to list all 21+ MCP tools (was only showing 6) - Document 5 additional npm scripts in CLAUDE.md - Update AI-capable nodes count to 263 (was 35 in old docs) All documentation now accurately reflects the current codebase state. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
54 lines
1.5 KiB
Bash
Executable File
54 lines
1.5 KiB
Bash
Executable File
#!/bin/bash
|
|
# Optimized Docker build script - no n8n dependencies!
|
|
|
|
set -e
|
|
|
|
# Enable BuildKit
|
|
export DOCKER_BUILDKIT=1
|
|
export COMPOSE_DOCKER_CLI_BUILD=1
|
|
|
|
echo "🚀 Building n8n-mcp (runtime-only, no n8n deps)..."
|
|
echo "💡 This build assumes database is pre-built"
|
|
|
|
# Check if nodes.db exists
|
|
if [ ! -f "data/nodes.db" ]; then
|
|
echo "⚠️ Warning: data/nodes.db not found!"
|
|
echo " Run 'npm run rebuild' first to create the database"
|
|
exit 1
|
|
fi
|
|
|
|
# Build with BuildKit
|
|
echo "📦 Building Docker image..."
|
|
|
|
docker build \
|
|
--progress=plain \
|
|
--cache-from type=gha \
|
|
--cache-from type=registry,ref=ghcr.io/czlonkowski/n8n-mcp:buildcache \
|
|
--build-arg BUILDKIT_INLINE_CACHE=1 \
|
|
-t "n8n-mcp:latest" \
|
|
.
|
|
|
|
# Show image size
|
|
echo ""
|
|
echo "📊 Image size:"
|
|
docker images n8n-mcp:latest --format "table {{.Repository}}\t{{.Tag}}\t{{.Size}}"
|
|
|
|
# Test the build
|
|
echo ""
|
|
echo "🧪 Testing build..."
|
|
docker run --rm n8n-mcp:latest node -e "console.log('Build OK - Runtime dependencies only!')"
|
|
|
|
# Estimate size savings
|
|
echo ""
|
|
echo "💰 Size comparison:"
|
|
echo " Old approach (with n8n deps): ~1.5GB"
|
|
echo " New approach (runtime only): ~280MB"
|
|
echo " Savings: ~82% smaller!"
|
|
|
|
echo ""
|
|
echo "✅ Build complete!"
|
|
echo ""
|
|
echo "🎯 Next steps:"
|
|
echo " - Use 'docker run -p 3000:3000 -e AUTH_TOKEN=your-token n8n-mcp:latest' to run"
|
|
echo " - Use 'docker-compose up' for production deployment"
|
|
echo " - Remember to rebuild database locally before pushing!" |