Initial commit

This commit is contained in:
2026-07-05 17:59:02 +08:00
commit 11ea2ddb9a
18 changed files with 5549 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
FROM python:3.12-slim
ARG HTTP_PROXY
ARG HTTPS_PROXY
ARG ALL_PROXY
ARG NO_PROXY
ARG http_proxy
ARG https_proxy
ARG all_proxy
ARG no_proxy
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
TZ=Asia/Shanghai \
NEWSPAPER_ROOT=/app
WORKDIR /app
RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates tzdata \
&& rm -rf /var/lib/apt/lists/*
COPY pyproject.toml ./
COPY AGENTS.md ./
COPY config ./config
COPY src ./src
COPY newspaper ./newspaper
RUN pip install --no-cache-dir .
VOLUME ["/app/newspaper"]
CMD ["hongyu-daily", "run"]