Futi613 commited on
Commit
115f9ee
·
verified ·
1 Parent(s): 5ba6eb2

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -0
Dockerfile ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-bookworm
2
+
3
+ WORKDIR /app
4
+
5
+ RUN apt update && apt install -y build-essential libglib2.0-0 libsm6 libxext6 libxrender-dev libgl1-mesa-glx
6
+
7
+ RUN git clone https://github.com/sml2h3/ddddocr.git
8
+
9
+ RUN cd ./ddddocr && pip install --no-cache-dir -r requirements.txt
10
+
11
+ RUN pip install fastapi uvicorn pydantic
12
+
13
+ CMD cd ddddocr && python -m ddddocr.__main__ api --host 0.0.0.0 --port 7860