| FROM python:3.10-slim | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| tesseract-ocr \ | |
| tesseract-ocr-eng \ | |
| poppler-utils \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy your handler | |
| COPY handler.py /app/handler.py | |
| COPY requirements.txt /app/requirements.txt | |
| WORKDIR /app | |
| RUN pip install -r requirements.txt | |
| CMD ["python", "handler.py"] |