change the pypi mirror and uv mirror to tuan mirror

pull/18407/head
lska367 1 year ago committed by GitHub
parent b094d40879
commit a13972a68f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -6,10 +6,10 @@ WORKDIR /app/api
# Install uv
ENV UV_VERSION=0.6.14
# if you are located in China,you can add the sentence to acceding uv pip tool
ENV UV_DEFAULT_INDEX="https://mirrors.aliyun.com/pypi/simple/"
ENV UV_DEFAULT_INDEX="https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple"
RUN python -m pip install -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple --upgrade pip
RUN pip install --no-cache-dir uv==${UV_VERSION} -i https://mirrors.aliyun.com/pypi/simple/
RUN pip install --no-cache-dir uv==${UV_VERSION} -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
# if you meet some error about apt,you can try to use sources.list config apt images
RUN rm -rf /etc/apt/source*

Loading…
Cancel
Save