소스 검색

fix: 使用 .venv/bin/python -m playwright 安装 Chromium

kinglee 1 주 전
부모
커밋
b396cc498f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Dockerfile

+ 1 - 1
Dockerfile

@@ -22,7 +22,7 @@ RUN pip install --no-cache-dir uv && \
 COPY . .
 
 # 安装 Playwright Chromium 浏览器(Crawl4AI 依赖)
-RUN playwright install chromium
+RUN .venv/bin/python -m playwright install chromium
 
 RUN chmod +x entrypoint.sh
 ENTRYPOINT ["./entrypoint.sh"]