base更新
This commit is contained in:
@@ -53,7 +53,7 @@ RUN apt-get update && \
|
||||
libnss3 \
|
||||
libcups2 \
|
||||
libxrandr2 \
|
||||
libasound2 \
|
||||
libasound2t64 \
|
||||
libatk1.0-0 \
|
||||
libatk-bridge2.0-0 \
|
||||
libpangocairo-1.0-0 \
|
||||
@@ -88,9 +88,7 @@ COPY schoolNewsCrawler/requirements.txt /tmp/requirements.txt
|
||||
RUN echo "========================================" && \
|
||||
echo "安装Python爬虫依赖到基础镜像" && \
|
||||
echo "========================================" && \
|
||||
# 确保pip是最新版本
|
||||
python3 -m pip install --no-cache-dir --upgrade pip setuptools wheel && \
|
||||
# 安装依赖
|
||||
# 直接安装依赖(使用系统pip,不升级以避免破坏系统)
|
||||
python3 -m pip install --no-cache-dir --break-system-packages -r /tmp/requirements.txt && \
|
||||
# 清理缓存
|
||||
python3 -m pip cache purge && \
|
||||
|
||||
Reference in New Issue
Block a user