I have followed these steps for building docker from source,
git clone https://github.com/tensorflow/serving cd serving docker build --pull -t $USER/tensorflow-s