余尚辉 3 ヶ月 前
コミット
e0bff93438
1 ファイル変更3 行追加2 行削除
  1. 3 2
      Dockerfile

+ 3 - 2
Dockerfile

@@ -6,8 +6,9 @@ RUN apt-get update && \
 WORKDIR /code
 ADD ./models /code
 
-# 安装项目依赖
-RUN pip install -r requirements.txt
+COPY ./requirements.txt /code/requirements.txt
+# 安装依赖
+RUN pip install -r /code/requirements.txt
 
 EXPOSE 50072
 #CMD ["gunicorn", "-w 1", "-b 0.0.0.0:8000", "src.core.server:app"]