Add Dockerfile (stdio, python-slim); trim requirements to runtime deps

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Michal
2026-10-03 01:34:28 +01:00
parent e4b5ea649f
commit 350cd336d2
2 changed files with 16 additions and 8 deletions

12
Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
# 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"]

View File

@@ -1,8 +1,4 @@
Flask>=3.0.0 sympy>=1.12
Flask-CORS>=4.0.0 numpy>=1.24.0
requests>=2.31.0 scipy>=1.11.0
fastmcp>=0.1.0 pandas>=2.0.0
sympy>=1.12
scipy>=1.11.0
numpy>=1.24.0
pytest>=7.0.0