# Generated by https://smithery.ai. See: https://smithery.ai/docs/build/project-config
FROM python:3.11-slim

# Install build dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
    build-essential \
    && rm -rf /var/lib/apt/lists/*

# Set working directory
WORKDIR /app

# Copy project files
COPY pyproject.toml hatchling.toml* uv.lock ./
COPY src ./src
COPY docs ./docs
COPY README.md LICENSE ./

# Install Python package
RUN pip install --no-cache-dir hatchling && \
    pip install --no-cache-dir .

# Ensure unbuffered output
ENV PYTHONUNBUFFERED=1

ENTRYPOINT ["mcp-obsidian-advanced"]
