fix: API Dockerfile使用阿里云PyPI镜像加速 #60
@@ -21,7 +21,7 @@ COPY requirements.txt /tmp/requirements.txt
|
||||
|
||||
# 创建虚拟环境并安装依赖
|
||||
RUN python -m venv /opt/venv \
|
||||
&& /opt/venv/bin/pip install --no-cache-dir -r /tmp/requirements.txt \
|
||||
&& /opt/venv/bin/pip install --no-cache-dir -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com -r /tmp/requirements.txt \
|
||||
&& rm /tmp/requirements.txt
|
||||
|
||||
# 复制应用代码
|
||||
|
||||
Reference in New Issue
Block a user