Spaces:
Runtime error
Runtime error
| FROM python:3.10-slim | |
| RUN apt-get update && apt-get install -y \ | |
| tesseract-ocr \ | |
| tesseract-ocr-ind \ | |
| libtesseract-dev \ | |
| libleptonica-dev \ | |
| poppler-utils \ | |
| libsm6 \ | |
| libxext6 \ | |
| libxrender-dev \ | |
| build-essential \ | |
| && apt-get clean \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install -r requirements.txt | |
| COPY . /app | |
| WORKDIR /app | |
| ENV PORT 7860 | |
| CMD ["gunicorn", "-w", "2", "-b", "0.0.0.0:7860", "app:app"] | |