yangtb24 commited on
Commit
c65379a
·
verified ·
1 Parent(s): 84eaeb7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -7
Dockerfile CHANGED
@@ -10,11 +10,8 @@ COPY . /app
10
  # 安装 requirements.txt 中指定的任何所需软件包
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
- # 使 7860 端口可供此容器外的世界使用
14
- EXPOSE 7860
15
 
16
- # 定义环境变量
17
- ENV NAME World
18
-
19
- # 在容器启动时运行 app.py
20
- CMD ["python", "app.py"]
 
10
  # 安装 requirements.txt 中指定的任何所需软件包
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
+ # 使端口可供此容器外的世界使用
14
+ EXPOSE 8000
15
 
16
+ # 在容器启动时运行 main.py
17
+ CMD ["python", "main.py"]