forked from mttu-developers/konabot
修复 playwright 在不同源的版本不同导致的问题
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user