feat: 军事科技每日资讯推送系统 - Docker部署 + 日志系统 + 数据目录重组

This commit is contained in:
poiuy
2026-07-12 20:01:02 +08:00
commit 54ca4b1b6a
267 changed files with 47047 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
FROM python:3.11-slim
WORKDIR /app
# 安装系统依赖和中文字体
RUN apt-get update && apt-get install -y --no-install-recommends \
fonts-wqy-microhei \
fonts-wqy-zenhei \
tzdata \
&& rm -rf /var/lib/apt/lists/*
# 设置时区
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# 安装Python依赖
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# 复制代码
COPY scripts/ ./scripts/
COPY config/ ./config/
# 创建输出目录
RUN mkdir -p /app/output /app/logs
# 设置环境变量
ENV PYTHONUNBUFFERED=1
ENV LOG_DIR=/app/logs
ENV OUTPUT_DIR=/app/output
# 入口命令
CMD ["python", "scripts/military_daily_report_v3.py"]