From 775f65d396142ab7f7d18e9a32b22a37600dab71 Mon Sep 17 00:00:00 2001 From: xiao Date: Tue, 7 Jan 2025 12:17:40 +0800 Subject: [PATCH] Update Dockerfiles to use Tencent Cloud PyPI mirror for faster pip installations --- Dockerfile | 1 + arm64/Dockerfile | 1 + 2 files changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 2d8d683..7d42664 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,6 +19,7 @@ RUN dos2unix /bt.sh && dos2unix /init_mysql.sh # 下载并安装宝塔面板及 nginx RUN curl -sSO https://download.bt.cn/install/install_panel.sh \ && echo y | bash install_panel.sh -P 8888 --ssl-disable \ + && btpip config set global.index-url https://mirrors.tencent.com/pypi/simple \ && mkdir /lnmp \ && curl -o /lnmp/nginx.sh https://download.bt.cn/install/3/nginx.sh \ && bash /lnmp/nginx.sh install 1.27 \ diff --git a/arm64/Dockerfile b/arm64/Dockerfile index 8b756ca..aa54ebe 100644 --- a/arm64/Dockerfile +++ b/arm64/Dockerfile @@ -19,6 +19,7 @@ RUN dos2unix /bt.sh && dos2unix /init_mysql.sh # 下载并安装宝塔面板及 lnmp 环境 RUN curl -sSO https://download.bt.cn/install/install_panel.sh \ && echo y | bash install_panel.sh -P 8888 --ssl-disable \ + && btpip config set global.index-url https://mirrors.tencent.com/pypi/simple \ && mkdir /lnmp \ && curl -o /lnmp/nginx.sh https://download.bt.cn/install/3/nginx.sh \ && bash /lnmp/nginx.sh install openresty \