修复 playwright 在不同源的版本不同导致的问题

This commit is contained in:
2025-11-18 02:22:35 +08:00
parent 789500842c
commit a8a7b62f76
3 changed files with 25 additions and 5 deletions

View File

@ -18,11 +18,6 @@ RUN apt-get update && \
fonts-noto-color-emoji \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir playwright \
&& python -m playwright install chromium \
&& pip uninstall -y playwright
FROM base AS builder
@ -46,6 +41,8 @@ COPY --from=builder ${VIRTUAL_ENV} ${VIRTUAL_ENV}
WORKDIR /app
RUN python -m playwright install chromium
COPY bot.py pyproject.toml .env.prod .env.test ./
COPY assets ./assets
COPY scripts ./scripts