Files
CalcMCP/Dockerfile

13 lines
504 B
Docker
Raw Permalink Normal View History

# syntax=docker/dockerfile:1
FROM docker.io/library/python:3.12-slim
LABEL org.opencontainers.image.title="calcmcp" \
org.opencontainers.image.description="Scientific calculator MCP server (SymPy/NumPy/SciPy/pandas), stdio transport" \
org.opencontainers.image.source="https://mysources.co.uk/michal/CalcMCP"
WORKDIR /app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY calculator.py mcp_server.py ./
USER nobody
ENTRYPOINT ["python", "-u", "mcp_server.py"]