Files
etf/Dockerfile
aszerW c104fca693 refactor(docker): 移除Dockerfile中中文字体安装步骤
- 删除了fonts-wqy-zenhei字体的安装命令
- 精简了Dockerfile,减少了镜像体积
- 移除了无用的缓存清理命令相关代码
- 保持工作目录和依赖复制指令不变
2026-03-24 23:15:08 +08:00

24 lines
506 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
# 运行定时任务调度器默认daemon模式
CMD ["python", "scripts/daily_scheduler.py", "--time", "09:00"]