- ci.yml: ruff lint/format, Linux 3.11/3.12 tests + coverage, Windows mocked-COM leg, package build + clean-venv wheel smoke, Docker smoke, server.json schema validation - release.yml: tag -> test gate -> tag/version check -> build -> PyPI trusted publishing (OIDC) -> GitHub Release - pyproject: SPDX license, authors, keywords, classifiers, project URLs, autocad-mcp-pro console alias; version 1.4.0 - Dockerfile: ship engineering/ + version.py (image previously missed both -> engineering tools failed in containers); healthcheck imports engineering - server.json: MCP registry manifest (io.github.u-c4n/autocad-mcp, pypi package) - docs/RELEASE-DISTRIBUTION.md: one-time owner actions (PyPI trusted publisher, mcp-publisher login) + directory submissions runbook Co-authored-by: Cursor <cursoragent@cursor.com>
22 lines
476 B
Docker
22 lines
476 B
Docker
FROM python:3.11-slim
|
|
|
|
WORKDIR /app
|
|
|
|
RUN useradd --create-home --shell /bin/bash mcp
|
|
|
|
COPY pyproject.toml README.md LICENSE ./
|
|
COPY server.py config.py security.py version.py ./
|
|
COPY backends/ ./backends/
|
|
COPY engineering/ ./engineering/
|
|
|
|
RUN pip install --no-cache-dir -e .
|
|
|
|
USER mcp
|
|
|
|
EXPOSE 8000
|
|
|
|
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
|
CMD python -c "import server, engineering.gear; print('ok')" || exit 1
|
|
|
|
CMD ["python", "server.py"]
|