build: 构建时安装 playwright 依赖

This commit is contained in:
Mmx233 2023-03-09 09:57:23 +08:00
parent 64c817ebf4
commit 78e1d3aaee
No known key found for this signature in database

View File

@ -19,4 +19,8 @@ COPY . .
RUN sed -i 's/^\-\-index\-url\s.*$//' requirements.txt && \
pip3 install --no-cache-dir -r requirements.txt
RUN playwright install-deps && \
playwright install chromium && \
rm -rf /var/lib/apt/lists/*
CMD ["nb", "run"]