镜像源:mirrors.aliyun.com → pypi.tuna.tsinghua.edu.cn(清华源,国内通常更稳定)
This commit is contained in:
parent
b220d550a6
commit
1dae2a1bc0
@ -37,10 +37,10 @@ ENV PATH="/root/.cargo/bin:$PATH"
|
||||
|
||||
# 复制requirements文件并安装Python依赖
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -i https://mirrors.aliyun.com/pypi/simple/ -r requirements.txt
|
||||
RUN pip install --no-cache-dir --timeout 120 -i https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn -r requirements.txt
|
||||
|
||||
# 安装 Playwright 并下载 Chromium
|
||||
RUN pip install --no-cache-dir -i https://mirrors.aliyun.com/pypi/simple/ playwright && \
|
||||
RUN pip install --no-cache-dir --timeout 120 -i https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn playwright && \
|
||||
playwright install chromium
|
||||
RUN npm install -g playwright sharp nodemailer dotenv && \
|
||||
npx playwright install chromium
|
||||
|
||||
Loading…
Reference in New Issue
Block a user