fix: auto-install font in browser

This commit is contained in:
zhayujie
2026-03-31 20:20:13 +08:00
parent 6d9b7baeb4
commit 7f94d37c2e
2 changed files with 19 additions and 1 deletions

View File

@@ -30,7 +30,8 @@ RUN apt-get update \
&& pip install --no-cache -r requirements-optional.txt \
&& pip install --no-cache -e . \
&& if [ "$INSTALL_BROWSER" = "true" ]; then \
pip install --no-cache "playwright==1.52.0" \
apt-get install -y --no-install-recommends fonts-wqy-zenhei \
&& pip install --no-cache "playwright==1.52.0" \
&& python -m playwright install-deps chromium \
&& mkdir -p /app/ms-playwright \
&& if [ "$USE_CN_MIRROR" = "true" ]; then \