# 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.13-bookworm-slim AS uv

# Set the working directory
WORKDIR /app

# Copy the necessary files
COPY . .

# Install the project's dependencies
RUN --mount=type=cache,target=/root/.cache/uv uv sync --frozen --no-dev --no-editable

# Set environment variable for ANTHROPIC_API_KEY
# This can be overridden at runtime
ENV DIDLOGIC_API_KEY=your_api_key_here

# Default command to run the server
CMD ["uv", "run", "didlogic_mcp"]

# Label the image
LABEL maintainer="Konstantin Tumalevich" \
      description="DIDLogic MCP server" \
      version="1.0.0"
