Kaynağa Gözat

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

WangXuMing 2 ay önce
ebeveyn
işleme
c458e7385c
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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 \