Does your dockerfile have a: FROM repo/image
As the first line? I got this error when I forgot to specify the docker image that I was building from.
Even if you’re building a “source image” you still need to specify FROM scratch as the first line of the dockerfile.