You cannot have a file in a Docker image with a name that starts with .wh.
. Try this:
$ echo "files beginning .wh. are not allowed!" > test.txt
$ echo -e "FROM alpine:latest\nCOPY test.txt /.wh.test.txt" > Dockerfile
$ docker build -t johnlane/wontwork:latest .