-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (16 loc) · 752 Bytes
/
Copy pathDockerfile
File metadata and controls
21 lines (16 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM python:3.12-slim
WORKDIR /app
# server.py + models.py + safe_path.py ARE the MCP server (py-modules in
# pyproject.toml). Copy them before install so `pip install .` packages them.
COPY pyproject.toml README.md server.py models.py safe_path.py inject.py ./
COPY src ./src
RUN pip install --no-cache-dir .
# Cloud Run injects $PORT (8080); server.py reads it and serves Streamable HTTP.
# Stateless + JSON responses: the mcpaas.live RC edge fronts this as the tool
# executor, forwarding tools/list + tools/call as plain JSON-RPC POSTs — no
# session handshake, no SSE. The edge owns the MCP protocol (2026-07-28).
ENV MCP_TRANSPORT=http
ENV FASTMCP_STATELESS_HTTP=true
ENV FASTMCP_JSON_RESPONSE=true
EXPOSE 8080
CMD ["python", "server.py"]