From 166b8cd443e6adb46fd1cc7593a6f5ae01896ce6 Mon Sep 17 00:00:00 2001 From: lska367 <53926324+lska367@users.noreply.github.com> Date: Wed, 23 Apr 2025 17:44:24 +0800 Subject: [PATCH] change to init build code --- api/Dockerfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/api/Dockerfile b/api/Dockerfile index 18ee598b24..3827ef85cb 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -6,15 +6,16 @@ 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.tuna.tsinghua.edu.cn/pypi/web/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.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.tuna.tsinghua.edu.cn/pypi/web/simple +pip install --no-cache-dir uv=${UV_VERSION} # if you meet some error about apt,you can try to use sources.list config apt images -RUN rm -rf /etc/apt/source* -ADD sources.list /etc/apt/ +# RUN rm -rf /etc/apt/source* +# ADD sources.list /etc/apt/ FROM base AS packages