ken4 commited on
Commit
27bd656
·
verified ·
1 Parent(s): 6f5a464

Upload 3 files

Browse files
Files changed (2) hide show
  1. Dockerfile +5 -2
  2. requirements.txt +3 -3
Dockerfile CHANGED
@@ -1,9 +1,12 @@
1
- FROM python:3.10
2
 
3
  WORKDIR /app
4
 
5
  COPY requirements.txt .
6
- RUN pip install --no-cache-dir -r requirements.txt
 
 
 
7
 
8
  COPY . .
9
 
 
1
+ FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
5
  COPY requirements.txt .
6
+
7
+ RUN pip install --upgrade pip \
8
+ && pip install paddlepaddle==3.2.1 -i https://www.paddlepaddle.org.cn/packages/stable/cpu/ \
9
+ && pip install --no-cache-dir -r requirements.txt
10
 
11
  COPY . .
12
 
requirements.txt CHANGED
@@ -1,8 +1,8 @@
1
  fastapi
2
  uvicorn
3
- paddleocr
4
- paddlepaddle-lite
5
- numpy
6
  Pillow
7
  requests
8
  python-multipart
 
 
 
1
  fastapi
2
  uvicorn
3
+ numpy==1.26.4
 
 
4
  Pillow
5
  requests
6
  python-multipart
7
+ paddlepaddle==3.2.1
8
+ paddleocr