Browse Source

pip install packages one by one

chenhaiyang 4 years ago
parent
commit
2882e5f5c8
1 changed files with 1 additions and 1 deletions
  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