File size: 389 Bytes
115f9ee
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
FROM python:3.10-bookworm

WORKDIR /app

RUN apt update && apt install -y build-essential libglib2.0-0 libsm6 libxext6 libxrender-dev libgl1-mesa-glx

RUN git clone https://github.com/sml2h3/ddddocr.git

RUN cd ./ddddocr && pip install --no-cache-dir -r requirements.txt

RUN pip install fastapi uvicorn pydantic

CMD cd ddddocr && python -m ddddocr.__main__ api --host 0.0.0.0 --port 7860