File tree Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Original file line number Diff line number Diff line change 2525
2626## Docker Installation
2727
28- Build the image
29-
28+ ### Build and run an image for keras-application pretrained model
3029``` shell
31- cd keras-flask-deploy-webapp
32- docker build -t keras_flask .
33- docker run -e MODEL_PATH=models/your_model.h5 -p 5000:5000
30+ $ cd keras-flask-deploy-webapp
31+ $ docker build -t keras_flask_app .
32+ $ docker run -d -p 5000:5000 keras_flask_app
3433```
3534
36- You can mount your model into the container.
35+ ### Build and run an image from your model into the containeri.
36+ After build an image as above, and
37+ ``` shell
38+ $ docker run -e MODEL_PATH=/mnt/models/your_model.h5 -v volume-name:/mnt/models -p 5000:5000 keras_flask_app
39+ ```
3740
41+ ### Pull an built-image from Docker hub
42+ For your convenience, can just pull the image instead of building it.
3843``` shell
39- docker run -e MODEL_PATH=/mnt/models/your_model.h5 -v volume-name:/mnt/models -p 5000:5000 keras_flask
44+ $ docker pull physhik/keras-flask-app:2
45+ $ docker run -d -p 5000:5000 physhik/keras-flask-app:2
4046```
47+ Open http://localhost:5000 after waiting for a minute to install in the container.
4148
4249
4350## Local Installation
You can’t perform that action at this time.
0 commit comments