From c7161b0aace32835305909d7d74a709f008624d1 Mon Sep 17 00:00:00 2001 From: liuyebo <1515783401@qq.com> Date: Thu, 8 Aug 2024 17:51:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=87=E6=8D=A2pip=E6=BA=90=E4=B8=BA?= =?UTF-8?q?=E9=98=BF=E9=87=8C=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1fea6e3..8818a68 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,16 +7,16 @@ WORKDIR /app # 设置环境变量 ENV PYTHONUNBUFFERED=1 \ # 设置时区 - TZ=Asia/Shanghai + TZ=Asia/Shanghai \ # 设置pip镜像地址,加快安装速度 -# PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple + PIP_INDEX_URL=http://mirrors.aliyun.com/pypi/simple # 将当前目录内容复制到容器的/app内 COPY . /app # 安装任何需要的包 RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo '$TZ' > /etc/timezone \ - && pip install --no-cache-dir -r requirements.txt \ + && pip install --no-cache-dir --trusted-host mirrors.aliyun.com -r requirements.txt \ && pip uninstall -y onnxruntime onnxruntime-gpu \ && pip install onnxruntime-gpu==1.18.0 --extra-index-url https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/onnxruntime-cuda-12/pypi/simple/