refactor: consolidate Docker builds by removing redundant Dockerfile.n8n
- Research proved n8n packages are NOT required at runtime for N8N_MODE - The 'n8n' CMD argument was vestigial and completely ignored by code - N8N_MODE only affects protocol negotiation, not runtime functionality - Standard Dockerfile works perfectly with N8N_MODE=true Benefits: - Eliminates 500MB+ of unnecessary n8n packages from Docker images - Reduces build time from 8+ minutes to 1-2 minutes - Simplifies maintenance with single Dockerfile - Improves CI/CD reliability Updated: - Removed Dockerfile.n8n - Updated GitHub Actions to use standard Dockerfile - Fixed docker-compose.n8n.yml to use standard Dockerfile - Added missing MCP_MODE=http and AUTH_TOKEN env vars - Updated all documentation references
This commit is contained in:
@@ -32,7 +32,7 @@ services:
|
||||
n8n-mcp:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.n8n
|
||||
dockerfile: Dockerfile
|
||||
image: ghcr.io/${GITHUB_REPOSITORY:-czlonkowski/n8n-mcp}/n8n-mcp:${VERSION:-latest}
|
||||
container_name: n8n-mcp
|
||||
restart: unless-stopped
|
||||
@@ -41,9 +41,11 @@ services:
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- N8N_MODE=true
|
||||
- MCP_MODE=http
|
||||
- N8N_API_URL=http://n8n:5678
|
||||
- N8N_API_KEY=${N8N_API_KEY}
|
||||
- MCP_AUTH_TOKEN=${MCP_AUTH_TOKEN}
|
||||
- AUTH_TOKEN=${MCP_AUTH_TOKEN}
|
||||
- LOG_LEVEL=${LOG_LEVEL:-info}
|
||||
volumes:
|
||||
- ./data:/app/data:ro
|
||||
|
||||
Reference in New Issue
Block a user