Update Dockerfile
Browse files- 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 |
-
#
|
14 |
-
EXPOSE
|
15 |
|
16 |
-
#
|
17 |
-
|
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"]
|
|
|
|
|
|