Spaces:
Sleeping
Sleeping
File size: 578 Bytes
82eee86 3136b3a 82eee86 620392e 82eee86 de5f9d1 620392e de5f9d1 4551a1b 3136b3a de5f9d1 3136b3a de5f9d1 82eee86 3136b3a 82eee86 3136b3a 82eee86 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | 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"]
|