Add Dockerfile (stdio, python-slim); trim requirements to runtime deps
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
12
Dockerfile
Normal file
12
Dockerfile
Normal 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"]
|
||||
@@ -1,8 +1,4 @@
|
||||
Flask>=3.0.0
|
||||
Flask-CORS>=4.0.0
|
||||
requests>=2.31.0
|
||||
fastmcp>=0.1.0
|
||||
sympy>=1.12
|
||||
scipy>=1.11.0
|
||||
numpy>=1.24.0
|
||||
pytest>=7.0.0
|
||||
scipy>=1.11.0
|
||||
pandas>=2.0.0
|
||||
|
||||
Reference in New Issue
Block a user