The mcp-ansible package is not published to PyPI, causing uvx to fail. Changed entrypoint to run directly from local source installation: - Uses `uv pip install -e .` for local editable install - Entrypoint: `python src/ansible_mcp/server.py` - MCP handshake validated: ansible-mcp v1.26.0 Status: WORKING (29/38 MCP servers production ready) 💘 Generated with Crush Assisted-by: GLM-5 via Crush <crush@charm.land>
20 lines
415 B
Docker
20 lines
415 B
Docker
FROM python:3.12-slim
|
|
|
|
# Install uv for faster package management
|
|
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
|
|
|
|
WORKDIR /app
|
|
|
|
# Copy source code
|
|
COPY . .
|
|
|
|
# Install the project with uv
|
|
RUN uv venv && uv pip install --no-cache -e .
|
|
|
|
# Set up environment
|
|
ENV PYTHONUNBUFFERED=1
|
|
ENV PATH=/app/.venv/bin:$PATH
|
|
|
|
# Run directly from local install, not via uvx
|
|
ENTRYPOINT ["python", "src/ansible_mcp/server.py"]
|