소스 검색

pip install by local packages

chy 4 년 전
부모
커밋
89e38b6cd6
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      Dockerfile

+ 4 - 1
Dockerfile

@@ -1,7 +1,10 @@
 FROM tiangolo/uvicorn-gunicorn-fastapi:python3.8
 
 COPY requirements.txt .
-RUN pip install -r requirements.txt
+
+COPY ./pkgs /app/pkgs
+RUN pip3 install --no-index --find-links=pkgs -r requirements.txt
+
 
 EXPOSE 80