File tree 1 file changed +14
-7
lines changed
1 file changed +14
-7
lines changed Original file line number Diff line number Diff line change 25
25
26
26
## Docker Installation
27
27
28
- Build the image
29
-
28
+ ### Build and run an image for keras-application pretrained model
30
29
``` 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
34
33
```
35
34
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
+ ```
37
40
41
+ ### Pull an built-image from Docker hub
42
+ For your convenience, can just pull the image instead of building it.
38
43
``` 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
40
46
```
47
+ Open http://localhost:5000 after waiting for a minute to install in the container.
41
48
42
49
43
50
## Local Installation
You can’t perform that action at this time.
0 commit comments