Solved! This traces back to two bugs: (1) bentoml uses a sub-optimal strategy for walking over the filesystem, where it visits excluded folders. This is why the build suddenly takes several minutes. (2) there is a bug in FS where it fails when the path string contains an exclamation mark. This causes the copying of the docker-specific config to fail and is why I am seeing a FileNotFound error.