Przeglądaj źródła

feat: 更新pip

huangzhichao 1 miesiąc temu
rodzic
commit
0b87dbf979
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      Dockerfile

+ 2 - 1
Dockerfile

@@ -16,7 +16,8 @@ WORKDIR /app
 
 # Install Python deps first (better layer caching)
 COPY requirements.txt .
-RUN pip install -r requirements.txt
+RUN pip install --no-cache-dir --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple/
+RUN pip install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/
 
 # Copy source
 COPY app ./app