# 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"]