I'm receiving "Cannot locate specified Dockerfile"

When building an image on Quay.io, the following error appears:

A build step failed: API error (500): Cannot locate specified Dockerfile: Dockerfile

The .dockerignore contains the Dockerfile

Unlike the Docker Hub, the Dockerfile is part of the Build Context on Quay. Thus, it must not appear in .dockerignore file.

The Build Trigger is incorrect

Verify the Dockerfile location and the branch/tag value specified in the build trigger.