# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
# Use a Python image with uv pre-installed
FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim AS uv

# Set the working directory
WORKDIR /app

# Copy the necessary files
COPY . /app

# Sync dependencies
RUN --mount=type=cache,target=/root/.cache/uv uv sync --frozen --no-install-project --no-dev --no-editable

# Set environment variables for Unichat model and API key
ENV UNICHAT_MODEL=SELECTED_UNICHAT_MODEL
ENV UNICHAT_API_KEY=YOUR_UNICHAT_API_KEY

# Entry point for running the server
ENTRYPOINT ["uv", "run", "unichat-mcp-server"]

# Specify default command (it can be overridden at runtime)
CMD []