2026-02-22 23:41:16 +00:00
|
|
|
# Base container for npm-based MCP servers (STDIO transport).
|
|
|
|
|
# mcpd uses this image to run `npx -y <packageName>` when a server
|
|
|
|
|
# has packageName but no dockerImage.
|
2026-02-23 00:18:28 +00:00
|
|
|
# Using slim (Debian) instead of alpine for better npm package compatibility.
|
|
|
|
|
FROM node:20-slim
|
2026-02-22 23:41:16 +00:00
|
|
|
|
|
|
|
|
WORKDIR /mcp
|
|
|
|
|
|
|
|
|
|
# Pre-warm npx cache directory
|
|
|
|
|
RUN mkdir -p /root/.npm
|
|
|
|
|
|
|
|
|
|
# Default entrypoint — overridden by mcpd via container command
|
|
|
|
|
ENTRYPOINT ["npx", "-y"]
|