瀏覽代碼

fix Dockerfile to copy models folder

oscarleiva 7 年之前
父節點
當前提交
5f854b9cc9
共有 2 個文件被更改,包括 8 次插入21 次删除
  1. 5 1
      flask_api/web/Dockerfile
  2. 3 20
      notebooks/test-flask-api.ipynb

+ 5 - 1
flask_api/web/Dockerfile

@@ -1,7 +1,11 @@
 FROM continuumio/miniconda
 LABEL maintainer="Peng Xiao<xiaoquwl@gmail.com>"
 
-COPY . /
+RUN mkdir /opt/app
+
+COPY . /opt/app
+
+ADD models /opt/app/models
 
 RUN pip install -r requirements.txt && pip install gunicorn
 

File diff suppressed because it is too large
+ 3 - 20
notebooks/test-flask-api.ipynb


Some files were not shown because too many files changed in this diff