File size: 593 Bytes
64368c4
9c88d9e
5b41007
283bdfb
5b41007
 
283bdfb
 
394c0b6
5b41007
283bdfb
9c88d9e
283bdfb
87014b3
5b41007
 
283bdfb
5b41007
 
 
283bdfb
5b41007
87014b3
5b41007
 
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
FROM python:3.10-slim

ENV DEBIAN_FRONTEND=noninteractive

# System dependencies
RUN apt-get update && apt-get install -y \
    build-essential \
    libgl1 \
    libglib2.0-0 \
    poppler-utils \
    && rm -rf /var/lib/apt/lists/*

WORKDIR /app

# Python libs
RUN pip install --no-cache-dir fastapi uvicorn python-multipart PyMuPDF pillow

# REQUIRED EXACT INSTALLS (your requirement)
RUN pip install --no-cache-dir paddlepaddle==3.0.0
RUN python -m pip install --no-cache-dir paddleocr

COPY app.py /app/app.py

EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]