-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (21 loc) · 1.02 KB
/
Copy pathDockerfile
File metadata and controls
25 lines (21 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Dockerfile — primarily for the Glama MCP registry (https://glama.ai/mcp/servers).
#
# Builds the MCP server and runs it over stdio. The server starts cleanly
# WITHOUT RetroArch present: the connectivity probe runs in the background
# and the MCP transport comes up immediately, so tools/list responds fast.
# That's exactly what Glama's "start + respond to introspection" check needs.
#
# For actual use you don't need Docker — `npm install -g mcp-retroarch` and
# point it at a running RetroArch with Network Commands enabled. See README.md.
FROM node:22-trixie-slim@sha256:8cd0ffd483b64585c6d135364bea5f937ff40cd3da431789af011f9ee8d55af0
WORKDIR /app
# Install dependencies. --ignore-scripts skips the `prepare` hook; we run the
# build explicitly below so the layer caching is predictable.
COPY package.json package-lock.json ./
RUN npm ci --ignore-scripts
# Compile TypeScript -> dist/
COPY tsconfig.json ./
COPY src/ ./src/
RUN npm run build
# The MCP server speaks JSON-RPC over stdio.
ENTRYPOINT ["node", "dist/index.js"]