FROM python:3.9-slim RUN apt-get update && apt-get install -y tesseract-ocr libgl1-mesa-glx libglib2.0-0 COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY . . ENV GRADIO_SERVER_PORT=7860 ENV GRADIO_SERVER_ADDRESS=0.0.0.0 CMD ["python", "app.py"]