Sfoglia il codice sorgente

pip install packages one by one

chenhaiyang 4 anni fa
parent
commit
2882e5f5c8
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      Dockerfile

+ 1 - 1
Dockerfile

@@ -3,7 +3,7 @@ FROM tiangolo/uvicorn-gunicorn-fastapi:python3.8
 COPY requirements.txt .
 
 COPY ./venv/pkgs /app/pkgs
-RUN pip install --no-index --find-links=pkgs -r requirements.txt
+RUN cat requirements.txt | xargs -n 1 pip install --no-index --find-links=pkgs
 
 
 EXPOSE 8002