# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
FROM python:3.12-alpine

# Ensure that Python output is not buffered
ENV PYTHONUNBUFFERED=1

WORKDIR /app

# copy requirements: using pyproject.toml and hatchling build system
COPY pyproject.toml .
COPY LICENSE .
COPY README.md .

# Copy the project files
COPY src ./src
COPY uv.lock .

# Upgrade pip and install the project package
RUN pip install --upgrade pip && \
    pip install . --no-cache-dir

# run the MCP server
# The entry point is defined in pyproject.toml as google-ocr-mcp-server
CMD ["google-ocr-mcp-server"]
