# Slim, dependency-light image — the MCP server is a pure HTTP client over the
# Clipici API (no ffmpeg/torch/whisper). Do NOT base this on the backend image.
FROM python:3.12-slim

WORKDIR /app

# Build the package. Copy only what hatchling needs, then install.
COPY pyproject.toml README.md ./
COPY src ./src
RUN pip install --no-cache-dir .

# Remote/hosted defaults — overridable via compose `environment:`. Auth is
# per-request (caller's Authorization header), so NO API key is baked in.
ENV CLIPICI_TRANSPORT=http \
    MCP_HTTP_HOST=0.0.0.0 \
    MCP_HTTP_PORT=9000

EXPOSE 9000

CMD ["clipici-mcp"]
