fangbin commited on
Commit
4c72d1f
·
1 Parent(s): deb4e3b
Files changed (1) hide show
  1. 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", "main.py"]
 
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"]