Here is how we proceed with the recipe:
- Download Dockerfile.devel from https://github.com/tensorflow/serving/blob/master/tensorflow_serving/tools/docker/Dockerfile.devel
- Build a container by running
docker build --pull -t $USER/tensorflow-serving-devel -f Dockerfile.devel
- Run the container
docker run -it $USER/tensorflow-serving-devel
- Clone the TensorFlow Serving, configure and test the server
git clone --recurse-submodules https://github.com/tensorflow/servingcd serving/tensorflow./configurecd ..bazel test tensorflow_serving/...
- Now let's see an example of saving a model so that the Server can save it. This step is inspired by an example used for building a MNIST trainer and serving the model (see https://github.com/tensorflow/serving/blob/master/tensorflow_serving/example/mnist_saved_model.py ...