Browse Source

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

kinglee 1 week ago
parent
commit
b396cc498f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Dockerfile

+ 1 - 1
Dockerfile

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