|
|
@@ -7,6 +7,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
|
curl \
|
|
|
libpq-dev \
|
|
|
chromium \
|
|
|
+ fonts-liberation fonts-ipafont-gothic fonts-wqy-zenhei fonts-freefont-ttf \
|
|
|
+ libasound2 libx11-6 libnss3 libxcomposite1 libxrandr2 libxdamage1 \
|
|
|
+ libxkbcommon0 libgtk-3-0 libdrm2 libgbm1 \
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
COPY pyproject.toml uv.lock ./
|
|
|
@@ -21,9 +24,8 @@ RUN pip install --no-cache-dir uv && \
|
|
|
|
|
|
COPY . .
|
|
|
|
|
|
-# 安装 Playwright 系统依赖 + 下载 Chromium 浏览器
|
|
|
-RUN .venv/bin/python -m playwright install-deps chromium && \
|
|
|
- .venv/bin/python -m playwright install chromium
|
|
|
+# 安装 Playwright Chromium 浏览器(系统依赖已在上方 apt-get 中预装)
|
|
|
+RUN .venv/bin/python -m playwright install chromium
|
|
|
|
|
|
RUN chmod +x entrypoint.sh
|
|
|
ENTRYPOINT ["./entrypoint.sh"]
|