Is it possible to force Docker to cache a directory?
I would like to do this because I am using vendoring in Go 1.6 (via Glide) and a majority of my build times are spent fetching the same dependencies as the previous build.
If there is a way of forcing Docker to cache a directory, is there any way to let Docker know when to invalidate the cache (ex., when glide.lock
changes)?