lxylxy123321 1 неделя назад
Родитель
Сommit
2c18f13eb6
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      backend/Dockerfile

+ 2 - 1
backend/Dockerfile

@@ -11,7 +11,8 @@ RUN sed -i 's|deb.debian.org|mirrors.aliyun.com|g' /etc/apt/sources.list.d/debia
 RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
 
 COPY requirements.txt .
-RUN pip install --no-cache-dir -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com -r requirements.txt
+RUN pip install -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com uv && \
+    uv pip install --system -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com -r requirements.txt
 
 COPY . .