Skip to content

⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的 AI 舆情监控助手与热点筛选工具!聚合多平台热点 + RSS 订阅,支持关键词精准筛选。AI 智能筛选新闻 + AI 翻译 + AI 分析简报直推手机,也支持接入 MCP 架构,赋能 AI 自然语言对话分析、情感洞察与趋势预测等。支持 Docker ,数据本地/云端自持。集成微信/飞书/钉钉/Telegram/邮件/ntfy/bark/slack 等渠道智能推送。

fix(docker): 修复 uv 依赖安装

sansan24ba603899dc
diff --git a/docker/Dockerfile b/docker/Dockerfile
index ba12347325..79eab874ed 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -50,13 +50,21 @@ RUN set -ex && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
+# 从官方镜像拷贝 uv 二进制
+COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
+
+# 先安装依赖(利用 Docker 层缓存)
COPY pyproject.toml uv.lock ./
-RUN pip install --no-cache-dir uv && \
- uv pip install --system --frozen --no-cache && \
- pip uninstall -y uv
+RUN --mount=type=cache,target=/root/.cache/uv \
+ uv sync --locked --no-install-project --no-dev
+# 再复制项目代码并安装项目本身
COPY docker/manage.py .
COPY trendradar/ ./trendradar/
+RUN --mount=type=cache,target=/root/.cache/uv \
+ uv sync --locked --no-dev
+
+ENV PATH="/app/.venv/bin:$PATH"
# 复制 entrypoint.sh 并强制转换为 LF 格式
COPY docker/entrypoint.sh /entrypoint.sh.tmp
diff --git a/uv.lock b/uv.lock
index 1648a8784b..c70325d85b 100644
--- a/uv.lock
+++ b/uv.lock
@@ -1996,7 +1996,7 @@ wheels = [
[[package]]
name = "trendradar"
-version = "6.5.2"
+version = "6.5.3"
source = { editable = "." }
dependencies = [
{ name = "boto3" },