This is a docker file which will create a server an opens a port for listening. It will also run a jupyter lab instance. Some required machine learning and deep learning libraries are already present in it..
docker build -t deep_server .
docker run -d -p 8888:8888 -p 7171:7171 --name deep deep_server
docker exec -it deep bash
http://localhost:8888
curl -H "Content-Type: application/json" -X POST -d '{"X_input":[1,0]}' http://localhost:7171/predict
https://github.com/ansrivas/keras-rest-server