diff --git a/Dockerfile b/Dockerfile index 94cab83..5ea53b0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,9 @@ # What: container image for aisync, published to ghcr.io by the release workflow. # Why: GitHub Packages does not host Python packages, so the image is the package. -# How: docker run --rm ghcr.io/maxont/aisync --help +# Glama (and any MCP host) launches the image with no arguments and talks MCP over stdio, +# so the default command is the MCP server, and the mcp extra must be installed for it to start. +# How: docker run --rm -i ghcr.io/maxont/aisync (MCP server over stdio) +# docker run --rm ghcr.io/maxont/aisync --help (CLI) FROM python:3.12-slim LABEL org.opencontainers.image.source="https://github.com/MaxonT/aisync" \ org.opencontainers.image.description="Advanced context management for all your AI coding tools: shared rules, a hash-chained journal, file claims and mid-session news hooks for Claude Code, Codex and Cursor." \ @@ -8,7 +11,8 @@ LABEL org.opencontainers.image.source="https://github.com/MaxonT/aisync" \ WORKDIR /src COPY pyproject.toml README.md LICENSE ./ COPY ai_sync ./ai_sync -RUN pip install --no-cache-dir . && rm -rf /src +RUN pip install --no-cache-dir ".[mcp]" && rm -rf /src WORKDIR /data +ENV NO_STAR_PROMPT=1 ENTRYPOINT ["aisync"] -CMD ["--help"] +CMD ["mcp"]