AI 生成: 途播播放器专用直播源,每天自动更新央视、卫视、地方台等频道,生成可访问的 M3U 格式文件。

This commit is contained in:
admin
2026-09-28 22:21:33 +08:00
commit d93877b89a
9 changed files with 295 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
FROM python:3.11-slim
WORKDIR /app
# 安装 cron
RUN apt-get update && apt-get install -y --no-install-recommends cron \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# 配置定时任务:每天凌晨 3 点更新
RUN echo "0 3 * * * cd /app && /usr/local/bin/python /app/updater.py >> /var/log/updater.log 2>&1" > /etc/cron.d/tubo \
&& chmod 0644 /etc/cron.d/tubo \
&& crontab /etc/cron.d/tubo
EXPOSE 8000
# 启动 cron 和 flask
CMD service cron start && python app.py