Spaces:
Sleeping
Sleeping
| FROM python:3.10-slim | |
| WORKDIR /app | |
| # Install OS dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| tesseract-ocr \ | |
| poppler-utils \ | |
| libgl1 \ | |
| texlive \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN pip install python-multipart | |
| # Install LaTeX-OCR manually | |
| RUN git clone https://github.com/lukas-blecher/LaTeX-OCR.git /opt/latexocr && \ | |
| pip install /opt/latexocr | |
| # Copy code | |
| COPY . . | |
| # Install app dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Run FastAPI app | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |