Spaces:
Running
Running
| FROM python:3.10-slim | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| RUN apt-get update && apt-get install -y \ | |
| tesseract-ocr \ | |
| tesseract-ocr-all \ | |
| libtesseract-dev \ | |
| poppler-utils \ | |
| ffmpeg \ | |
| libsm6 \ | |
| libxext6 \ | |
| p7zip-full \ | |
| unrar-free \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "4", "--loop", "uvloop", "--http", "httptools"] | |