AJiaJiShu commited on
Commit
82ef1e8
·
verified ·
1 Parent(s): 4e45039

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -3
Dockerfile CHANGED
@@ -12,9 +12,12 @@ WORKDIR /app
12
  COPY app.py requirements.txt /app/
13
 
14
  # 安装 Python 依赖
15
- RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --no-cache-dir \
16
- opencv-python==4.10.0.82 && \
17
- pip install -r requirements.txt
 
 
 
18
 
19
  # 暴露端口
20
  EXPOSE 8090
 
12
  COPY app.py requirements.txt /app/
13
 
14
  # 安装 Python 依赖
15
+ RUN apt-get update && apt-get install -y libgl1-mesa-glx
16
+
17
+ # 安装应用依赖
18
+ RUN pip install --upgrade opencv-python
19
+ # RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --no-cache-dir -r requirements.txt
20
+ RUN pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple --no-cache-dir
21
 
22
  # 暴露端口
23
  EXPOSE 8090