I know that I can give the image name when building a custom image, like this:
docker build -t sam/can:v2 . # Will be named sam/can:v2
I wanted to know if I can define the name of the image in Dockerfile, so I won't have to mention it in the docker build command?
Can anyone help me with this?