Files
etf/Dockerfile
aszerW 7c48e4ab21 chore: Dockerfile注释Flask服务CMD,恢复默认调度器
修改内容:
- Flask服务CMD改为注释状态
- 定时调度器CMD恢复为默认启动

说明:
- 默认启动定时任务调度器(保持向后兼容)
- 如需使用Flask服务,取消Flask CMD注释并注释调度器CMD
2026-05-12 23:59:59 +08:00

27 lines
668 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

FROM index-base:latest
# 设置工作目录
WORKDIR /app
# 复制依赖文件
COPY requirements.txt .
RUN uv pip install --system -r requirements.txt
# 仅复制除 data 目录外的应用代码, data 在 dockerignore 中已经被排除
COPY . .
# 创建日志目录
RUN mkdir -p /app/logs
# 设置时区为上海
ENV TZ=Asia/Shanghai
# 暴露端口如需Web服务
EXPOSE 80
# 启动Flask数据API服务默认端口80
# CMD ["python", "datasource/flask_server.py", "--host", "0.0.0.0"]
# 运行定时任务调度器如需使用Flask服务取消上面注释并注释掉下面
CMD ["python", "scripts/daily_scheduler.py", "--time", "09:00"]