feat: Phase 1 添加 GHA 定时、run-daily.sh 与 Docker 部署
让早报可在无本地服务器环境下定时生成并推送企微,补齐 Linux/CI 入口。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
27
Dockerfile
Normal file
27
Dockerfile
Normal file
@@ -0,0 +1,27 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
ENV PYTHONDONTWRITEBYTECODE=1 \
|
||||
PYTHONUNBUFFERED=1 \
|
||||
TZ=Asia/Shanghai
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends tzdata \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY daily/ daily/
|
||||
COPY shared/ shared/
|
||||
COPY skills/ skills/
|
||||
COPY bot/ bot/
|
||||
COPY run-daily.sh .
|
||||
|
||||
RUN chmod +x run-daily.sh \
|
||||
&& mkdir -p output .cache logs
|
||||
|
||||
VOLUME ["/app/output", "/app/.cache", "/app/logs"]
|
||||
|
||||
ENTRYPOINT ["./run-daily.sh"]
|
||||
Reference in New Issue
Block a user