# MCPize-compatible image: installs deps, runs MCP server as Streamable HTTP on $PORT
FROM python:3.12-slim

WORKDIR /app

COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt

COPY src ./src
COPY mcpize.yaml ./

ENV PYTHONUNBUFFERED=1

# FastMCP streamable-http on the port MCPize/Cloud Run provides
CMD ["sh", "-c", "python -m media_mcp.http_entry"]
