fix: Flask服务默认端口改为80,简化Dockerfile CMD
修改内容: - flask_server.py: 默认端口从5000改为80 - Dockerfile: CMD简化,无需指定--port参数 最终Dockerfile: FROM index-base:latest WORKDIR /app ... EXPOSE 80 CMD ["python", "datasource/flask_server.py", "--host", "0.0.0.0"]
This commit is contained in:
@@ -20,5 +20,5 @@ ENV TZ=Asia/Shanghai
|
||||
# 暴露端口(如需Web服务)
|
||||
EXPOSE 80
|
||||
|
||||
# 运行定时任务调度器(默认daemon模式)
|
||||
CMD ["python", "scripts/daily_scheduler.py", "--time", "09:00"]
|
||||
# 启动Flask数据API服务
|
||||
CMD ["python", "datasource/flask_server.py", "--host", "0.0.0.0"]
|
||||
Reference in New Issue
Block a user