File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,10 @@ WORKDIR /app/api
6
6
# Install uv
7
7
ENV UV_VERSION=0.6.14
8
8
9
- RUN pip install --no-cache-dir -i https://mirrors.aliyun.com/pypi/simple/ uv==${UV_VERSION}
9
+ # 2024-12-19: 修改为官方 PyPI 源,解决网络超时问题
10
+ # 原配置: RUN pip install --no-cache-dir -i https://pypi.tuna.tsinghua.edu.cn/simple uv==${UV_VERSION}
11
+ # 修改原因: 清华源和阿里云源都出现网络超时,改用官方源提高稳定性
12
+ RUN pip install --no-cache-dir uv==${UV_VERSION}
10
13
11
14
12
15
FROM base AS packages
@@ -19,7 +22,11 @@ RUN apt-get update \
19
22
20
23
# Install Python dependencies
21
24
COPY pyproject.toml uv.lock ./
22
- RUN uv sync --index-url https://mirrors.aliyun.com/pypi/simple/
25
+ # 2024-12-19: 修改为官方 PyPI 源,解决网络超时问题
26
+ # 原配置: RUN uv sync --index-url https://pypi.tuna.tsinghua.edu.cn/simple
27
+ # 修改原因: 清华源和阿里云源都出现网络超时,改用官方源提高稳定性
28
+ # 使用官方源,并设置更长的超时时间
29
+ RUN uv sync --timeout 600
23
30
24
31
# production stage
25
32
FROM base AS production
You can’t perform that action at this time.
0 commit comments