Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +6 -3
Dockerfile
CHANGED
|
@@ -12,9 +12,12 @@ WORKDIR /app
|
|
| 12 |
COPY app.py requirements.txt /app/
|
| 13 |
|
| 14 |
# 安装 Python 依赖
|
| 15 |
-
RUN
|
| 16 |
-
|
| 17 |
-
|
|
|
|
|
|
|
|
|
|
| 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
|