Based on a Dockerfile that exists in the same directory:
docker build .
Note: Make sure to copy the image Id, you'll see it in the last line.
Build an image & give it a name and a tag:
docker build -t <name>:<tag> .
Note: The name and the tag of your image are totally up to you. We use them to know the purpose of each image <name>, and its version <tag>.