.dockerignore file includes a rule like this:
For some reason that seems to match the path
plugin/build.gradle when it seems that it shouldn’t.
This seems to have become an issue in the past few months; our earlier builds used to work fine and local builds work fine.
(Context: this image builds an Elasticsearch plugin)