FROM python:3.12-slim

WORKDIR /app

# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy application files
COPY raytune_ocr.py .
COPY run_tuning.py .

# Create results directory
RUN mkdir -p /app/results

ENV PYTHONUNBUFFERED=1

ENTRYPOINT ["python", "run_tuning.py"]
