소스 검색

v0.0.3-为dockerfile uv增加阿里云镜像源

WangXuMing 2 달 전
부모
커밋
c458e7385c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Dockerfile

+ 1 - 1
Dockerfile

@@ -14,7 +14,7 @@ ENV PATH="/venv/bin:$PATH"
 COPY requirements.txt /tmp/
 
 # 关键:用 uv 安装依赖(一行命令拆分行,仅用 \ 连接,无任何行首注释)
-RUN /venv/bin/pip install --no-cache-dir uv \
+RUN /venv/bin/pip install --no-cache-dir uv -i https://mirrors.aliyun.com/pypi/simple/ \
     && /venv/bin/uv config set global.index-url https://mirrors.aliyun.com/pypi/simple \
     && /venv/bin/uv config set global.trusted-host mirrors.aliyun.com \
     && /venv/bin/uv pip install --no-cache --timeout 1800 -r /tmp/requirements.txt \