# Slidefast MCP Server Dockerfile
FROM python:3.12-slim

WORKDIR /app

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

# Copy project files
COPY pyproject.toml README.md LICENSE* ./
COPY src/ ./src/

# Install the package
RUN pip install --no-cache-dir .

# Expose the port for HTTP transport
EXPOSE 8080

# Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
    CMD python -c "import httpx; httpx.get('http://localhost:8080/health').raise_for_status()" || exit 1

# Run in streamable-http mode for remote deployment
CMD ["slidefast-mcp", "streamable-http", "--host", "0.0.0.0", "--port", "8080"]
