让早报可在无本地服务器环境下定时生成并推送企微,补齐 Linux/CI 入口。 Co-authored-by: Cursor <cursoragent@cursor.com>
28 lines
551 B
Docker
28 lines
551 B
Docker
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"]
|