Spaces:
Running
Running
fix
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
@@ -13,6 +13,9 @@ RUN apt-get update && apt-get install -y \
|
|
13 |
# 复制项目文件到容器中
|
14 |
COPY . /app
|
15 |
|
|
|
|
|
|
|
16 |
# 安装 Python 依赖
|
17 |
RUN pip install --no-cache-dir -r requirements.txt
|
18 |
|
@@ -25,4 +28,4 @@ ENV LC_ALL=C.UTF-8
|
|
25 |
# EXPOSE 8000
|
26 |
|
27 |
# 运行应用
|
28 |
-
CMD ["python", "
|
|
|
13 |
# 复制项目文件到容器中
|
14 |
COPY . /app
|
15 |
|
16 |
+
# 升级 pip
|
17 |
+
RUN pip install --upgrade pip
|
18 |
+
|
19 |
# 安装 Python 依赖
|
20 |
RUN pip install --no-cache-dir -r requirements.txt
|
21 |
|
|
|
28 |
# EXPOSE 8000
|
29 |
|
30 |
# 运行应用
|
31 |
+
CMD ["python", "run.py"]
|