ken4 commited on
Commit
271121d
·
verified ·
1 Parent(s): 17fe256

Upload 3 files

Browse files
Files changed (2) hide show
  1. Dockerfile +4 -2
  2. requirements.txt +1 -1
Dockerfile CHANGED
@@ -1,14 +1,16 @@
1
  FROM python:3.10-slim
2
 
3
  ENV DISABLE_MODEL_SOURCE_CHECK=True
4
- ENV PADDLEX_DISABLE=1
 
 
 
5
 
6
  WORKDIR /app
7
 
8
  COPY requirements.txt .
9
 
10
  RUN pip install --upgrade pip \
11
- && pip uninstall -y opencv-python opencv-contrib-python paddlex || true \
12
  && pip install paddlepaddle==3.2.1 -i https://www.paddlepaddle.org.cn/packages/stable/cpu/ \
13
  && pip install --no-cache-dir -r requirements.txt
14
 
 
1
  FROM python:3.10-slim
2
 
3
  ENV DISABLE_MODEL_SOURCE_CHECK=True
4
+
5
+ RUN apt-get update \
6
+ && apt-get install -y --no-install-recommends libgl1 \
7
+ && rm -rf /var/lib/apt/lists/*
8
 
9
  WORKDIR /app
10
 
11
  COPY requirements.txt .
12
 
13
  RUN pip install --upgrade pip \
 
14
  && pip install paddlepaddle==3.2.1 -i https://www.paddlepaddle.org.cn/packages/stable/cpu/ \
15
  && pip install --no-cache-dir -r requirements.txt
16
 
requirements.txt CHANGED
@@ -6,4 +6,4 @@ requests
6
  python-multipart
7
  paddlepaddle==3.2.1
8
  paddleocr
9
- opencv-python-headless
 
6
  python-multipart
7
  paddlepaddle==3.2.1
8
  paddleocr
9
+ opencv-python-headless