feat: daily paper rss generator with dockerfile + entrypoint

This commit is contained in:
Kunthawat Greethong
2026-06-27 14:36:43 +07:00
parent ffe8769875
commit 23fed6dd64
5 changed files with 242 additions and 33 deletions

16
run.sh Normal file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
set -euo pipefail
# ─────────────────────────────────────────────
# HuggingFace Daily Paper RSS — Entrypoint Script
# ─────────────────────────────────────────────
# Convenience wrapper — delegates to run.py
#
# Usage:
# ./run.sh # output to ./feeds/
# ./run.sh --output-dir /data/feeds
# ./run.sh --date 2026-06-27 # simulate date
# ─────────────────────────────────────────────
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PYTHON=$(command -v python3 || command -v python)
exec "$PYTHON" "$SCRIPT_DIR/run.py" "$@"