xueyiming 1 неделя назад
Родитель
Сommit
5d315b8129
1 измененных файлов с 11 добавлено и 3 удалено
  1. 11 3
      Dockerfile

+ 11 - 3
Dockerfile

@@ -52,6 +52,7 @@ RUN apt-get update \
 COPY pyproject.toml requirements.txt README.md ./
 COPY supply_agent/ supply_agent/
 COPY supply_infra/ supply_infra/
+COPY find_agent_v2/ find_agent_v2/
 COPY agents/ agents/
 COPY api/ api/
 COPY alembic.ini ./
@@ -62,9 +63,16 @@ COPY scripts/container-entrypoint.sh scripts/
 
 RUN test -s agents/demand_belong_category_agent/prompt/system_prompt.md \
     && test -s agents/demand_grade_agent/prompt/system_prompt.md \
-    && test -s agents/demand_video_expand_agent/prompt/system_prompt.md \
-    && pip install -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com ".[odps]" \
-    && python scripts/verify_video_truncate_runtime.py \
+    && test -s agents/demand_video_expand_agent/prompt/system_prompt.md
+
+RUN pip install \
+    --index-url https://mirrors.aliyun.com/pypi/simple/ \
+    --extra-index-url https://pypi.aiddit.com/repository/pypi-group/simple \
+    --trusted-host mirrors.aliyun.com \
+    --trusted-host pypi.aiddit.com \
+    ".[odps]"
+
+RUN python scripts/verify_video_truncate_runtime.py \
     && chmod +x scripts/container-entrypoint.sh
 
 COPY --from=web-builder /app/web/dist ./web/dist