|
|
@@ -6,6 +6,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
|
build-essential \
|
|
|
curl \
|
|
|
libpq-dev \
|
|
|
+ chromium \
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
COPY pyproject.toml uv.lock ./
|
|
|
@@ -20,8 +21,8 @@ RUN pip install --no-cache-dir uv && \
|
|
|
|
|
|
COPY . .
|
|
|
|
|
|
-# 安装 Playwright Chromium 浏览器(Crawl4AI 依赖)
|
|
|
-RUN .venv/bin/python -m playwright install --with-deps chromium
|
|
|
+# 安装 Playwright 系统依赖(不下载 Chromium,使用系统 chromium 包)
|
|
|
+RUN .venv/bin/python -m playwright install-deps chromium
|
|
|
|
|
|
RUN chmod +x entrypoint.sh
|
|
|
ENTRYPOINT ["./entrypoint.sh"]
|