feat(mcp): add Node.js and Python runtime to MCP container image

- Install nodejs + npm (provides npx for JS/TS MCP servers)
- Install python3 + uv (provides uvx for Python MCP servers)
- Add bash and curl as base utilities
This commit is contained in:
BBQ
2026-02-13 00:41:00 +08:00
parent 7942df6a32
commit 944461f031
2 changed files with 26 additions and 2 deletions
+13 -1
View File
@@ -15,7 +15,19 @@ RUN --mount=type=cache,target=/go/pkg/mod \
go build -trimpath -ldflags "-s -w -X github.com/memohai/memoh/internal/version.CommitHash=${COMMIT_HASH}" -o /out/mcp ./cmd/mcp
FROM alpine:latest
RUN apk add --no-cache grep
# Base utilities
RUN apk add --no-cache grep curl bash
# Node.js + npm (provides npx for JS/TS MCP servers)
RUN apk add --no-cache nodejs npm
# Python 3 + uv (provides uvx for Python MCP servers)
RUN apk add --no-cache python3 && \
curl -LsSf https://astral.sh/uv/install.sh | sh && \
ln -sf /root/.local/bin/uv /usr/local/bin/uv && \
ln -sf /root/.local/bin/uvx /usr/local/bin/uvx
WORKDIR /app
COPY --from=build /out/mcp /opt/mcp
COPY cmd/mcp/template /opt/mcp-template