make image build smarter. Pull the parent image, and check the .[*].RootFS.Layers with our already existing image. if they match, bail.
You can use docker image inspect to pull the layers. Will need to figure out the --format options to just print the hashes.