FROM python:3.10-slim WORKDIR /code # Install tesseract RUN apt-get update && apt-get install -y tesseract-ocr # Install python dependencies COPY requirements.txt . RUN pip install -r requirements.txt # Copy the source code COPY app.py . # Run the app CMD ["python", "app.py"]