Browse Source

fix Dockerfile to copy models folder

oscarleiva 7 years ago
parent
commit
5f854b9cc9
2 changed files with 8 additions and 21 deletions
  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