Files
n8n-mcp/Dockerfile.test
czlonkowski b31ad630b8 fix: enhance stdio wrapper for Docker clean JSON-RPC output
- Set environment variables BEFORE imports in stdio-wrapper
- Override ALL console methods to prevent any output
- Update docker-entrypoint.sh to use exec for proper signal handling
- Add fallback if stdio-wrapper.js is missing
- Remove background process handling in stdio mode

This ensures absolutely no log output corrupts the JSON-RPC stream
2025-06-17 09:55:14 +02:00

24 lines
577 B
Docker

# Quick test Dockerfile using pre-built files
FROM node:20-alpine
WORKDIR /app
# Copy only the essentials
COPY package*.json ./
COPY dist ./dist
COPY data ./data
COPY docker/docker-entrypoint.sh /usr/local/bin/
COPY .env.example ./
# Install only runtime dependencies
RUN npm install --production @modelcontextprotocol/sdk better-sqlite3 express dotenv
# Make entrypoint executable
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
# Set environment
ENV IS_DOCKER=true
ENV MCP_MODE=stdio
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
CMD ["node", "dist/mcp/index.js"]