FROM python:3.12-alpine LABEL org.opencontainers.image.title="Destiny by Nandai Jewels — MCP Server" \ org.opencontainers.image.description="Zero-dependency MIT MCP server for Apple Silicon VRAM sizing, notarized macOS release verification, M4 Pro benchmarks, and zero-upload SHA-256/C2PA inspection." \ org.opencontainers.image.version="2.0.0" \ org.opencontainers.image.licenses="MIT" \ org.opencontainers.image.source="https://github.com/karany97/destiny" \ org.opencontainers.image.url="https://nandai.org/tools" \ io.modelcontextprotocol.server.name="io.github.karany97/destiny" WORKDIR /app COPY LICENSE README.md ./ COPY mcp/destiny_mcp_server.py ./mcp/destiny_mcp_server.py RUN adduser -D -u 10001 mcp \ && python3 -m py_compile /app/mcp/destiny_mcp_server.py \ && chown -R mcp:mcp /app USER mcp ENV PYTHONUNBUFFERED=1 \ PYTHONDONTWRITEBYTECODE=1 HEALTHCHECK --interval=30s --timeout=5s --start-period=2s --retries=2 \ CMD python3 -c "import subprocess; p = subprocess.run(['python3', '/app/mcp/destiny_mcp_server.py'], input='{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"initialize\",\"params\":{\"protocolVersion\":\"2025-03-26\",\"capabilities\":{},\"clientInfo\":{\"name\":\"healthcheck\",\"version\":\"1.0\"}}}\n', text=True, capture_output=True, timeout=4); assert p.returncode == 0 and 'io.github.karany97/destiny' in p.stdout" ENTRYPOINT ["python3", "-u", "/app/mcp/destiny_mcp_server.py"]