sortitout / Dockerfile
triflix's picture
Update Dockerfile
5b41007 verified
raw
history blame contribute delete
593 Bytes
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"]