# A small, standard image to run the MCP server in the cloud (HTTP mode).
FROM python:3.12-slim

WORKDIR /app

# Install the package (and its dependencies) from the project files.
COPY pyproject.toml README.md LICENSE ./
COPY src ./src
RUN pip install --no-cache-dir .

# Run as a network web server, not stdio. The cloud sets PORT automatically.
ENV MCP_TRANSPORT=http
EXPOSE 8000

# Starts the `his-registry` command defined in pyproject.toml.
CMD ["his-registry"]
