FROM python:3.12-slim # Install system dependencies RUN apt-get update && apt-get install -y \ tesseract-ocr \ && rm -rf /var/lib/apt/lists/* # Set working directory WORKDIR /app # Copy requirements and install COPY requirements.txt . RUN pip install -r requirements.txt # Copy application code COPY . . # Expose port EXPOSE 8000 # Run the application CMD ["python", "main.py"]