Răsfoiți Sursa

fix(docker): 修复 entrypoint.sh 硬编码 Python 路径导致 venv 依赖找不到,升级至 v6.5.5

sansan 1 lună în urmă
părinte
comite
167b28c8d0
7 a modificat fișierele cu 11 adăugiri și 11 ștergeri
  1. 1 1
      README-EN.md
  2. 1 1
      README.md
  3. 5 5
      docker/entrypoint.sh
  4. 1 1
      pyproject.toml
  5. 1 1
      trendradar/__init__.py
  6. 1 1
      uv.lock
  7. 1 1
      version

+ 1 - 1
README-EN.md

@@ -11,7 +11,7 @@ Deploy in <strong>30 seconds</strong> — Say goodbye to endless scrolling, only
 [![GitHub Stars](https://img.shields.io/github/stars/sansan0/TrendRadar?style=flat-square&logo=github&color=yellow)](https://github.com/sansan0/TrendRadar/stargazers)
 [![GitHub Forks](https://img.shields.io/github/forks/sansan0/TrendRadar?style=flat-square&logo=github&color=blue)](https://github.com/sansan0/TrendRadar/network/members)
 [![License](https://img.shields.io/badge/license-GPL--3.0-blue.svg?style=flat-square)](LICENSE)
-[![Version](https://img.shields.io/badge/version-v6.5.4-blue.svg)](https://github.com/sansan0/TrendRadar)
+[![Version](https://img.shields.io/badge/version-v6.5.5-blue.svg)](https://github.com/sansan0/TrendRadar)
 [![MCP](https://img.shields.io/badge/MCP-v4.0.1-green.svg)](https://github.com/sansan0/TrendRadar)
 [![RSS](https://img.shields.io/badge/RSS-Feed_Support-orange.svg?style=flat-square&logo=rss&logoColor=white)](https://github.com/sansan0/TrendRadar)
 [![AI Translation](https://img.shields.io/badge/AI-Multi--Language-purple.svg?style=flat-square)](https://github.com/sansan0/TrendRadar)

+ 1 - 1
README.md

@@ -12,7 +12,7 @@
 [![GitHub Stars](https://img.shields.io/github/stars/sansan0/TrendRadar?style=flat-square&logo=github&color=yellow)](https://github.com/sansan0/TrendRadar/stargazers)
 [![GitHub Forks](https://img.shields.io/github/forks/sansan0/TrendRadar?style=flat-square&logo=github&color=blue)](https://github.com/sansan0/TrendRadar/network/members)
 [![License](https://img.shields.io/badge/license-GPL--3.0-blue.svg?style=flat-square)](LICENSE)
-[![Version](https://img.shields.io/badge/version-v6.5.4-blue.svg)](https://github.com/sansan0/TrendRadar)
+[![Version](https://img.shields.io/badge/version-v6.5.5-blue.svg)](https://github.com/sansan0/TrendRadar)
 [![MCP](https://img.shields.io/badge/MCP-v4.0.1-green.svg)](https://github.com/sansan0/TrendRadar)
 [![RSS](https://img.shields.io/badge/RSS-订阅源支持-orange.svg?style=flat-square&logo=rss&logoColor=white)](https://github.com/sansan0/TrendRadar)
 [![AI翻译](https://img.shields.io/badge/AI-多语言推送-purple.svg?style=flat-square)](https://github.com/sansan0/TrendRadar)

+ 5 - 5
docker/entrypoint.sh

@@ -10,7 +10,7 @@ fi
 case "${RUN_MODE:-cron}" in
 "once")
     echo "🔄 单次执行"
-    exec /usr/local/bin/python -m trendradar
+    exec python -m trendradar
     ;;
 "cron")
     # 校验 CRON_SCHEDULE 格式(仅允许 cron 表达式合法字符)
@@ -21,7 +21,7 @@ case "${RUN_MODE:-cron}" in
     fi
 
     # 生成 crontab
-    echo "$CRON_EXPR cd /app && /usr/local/bin/python -m trendradar" > /tmp/crontab
+    echo "$CRON_EXPR cd /app && python -m trendradar" > /tmp/crontab
     
     echo "📅 生成的crontab内容:"
     cat /tmp/crontab
@@ -34,13 +34,13 @@ case "${RUN_MODE:-cron}" in
     # 立即执行一次(如果配置了)
     if [ "${IMMEDIATE_RUN:-false}" = "true" ]; then
         echo "▶️ 立即执行一次"
-        /usr/local/bin/python -m trendradar
+        python -m trendradar
     fi
 
     # 启动 Web 服务器(如果配置了)
     if [ "${ENABLE_WEBSERVER:-false}" = "true" ]; then
         echo "🌐 启动 Web 服务器..."
-        /usr/local/bin/python manage.py start_webserver
+        python manage.py start_webserver
 
         WEBSERVER_WATCHDOG_ENABLED=$(echo "${WEBSERVER_WATCHDOG:-true}" | tr '[:upper:]' '[:lower:]')
         WEBSERVER_WATCHDOG_INTERVAL=${WEBSERVER_WATCHDOG_INTERVAL:-60}
@@ -50,7 +50,7 @@ case "${RUN_MODE:-cron}" in
             (
                 while true; do
                     sleep "$WEBSERVER_WATCHDOG_INTERVAL"
-                    /usr/local/bin/python manage.py webserver_autofix
+                    python manage.py webserver_autofix
                 done
             ) &
             WEBSERVER_WATCHDOG_PID=$!

+ 1 - 1
pyproject.toml

@@ -1,6 +1,6 @@
 [project]
 name = "trendradar"
-version = "6.5.4"
+version = "6.5.5"
 description = "TrendRadar - 热点新闻聚合与分析工具"
 requires-python = ">=3.12"
 dependencies = [

+ 1 - 1
trendradar/__init__.py

@@ -9,5 +9,5 @@ TrendRadar - 热点新闻聚合与分析工具
 
 from trendradar.context import AppContext
 
-__version__ = "6.5.4"
+__version__ = "6.5.5"
 __all__ = ["AppContext", "__version__"]

+ 1 - 1
uv.lock

@@ -1996,7 +1996,7 @@ wheels = [
 
 [[package]]
 name = "trendradar"
-version = "6.5.4"
+version = "6.5.5"
 source = { editable = "." }
 dependencies = [
     { name = "boto3" },

+ 1 - 1
version

@@ -1 +1 @@
-6.5.4
+6.5.5