docker build as code example
Example 1: docker build
docker build -t [tag] .
Example 2: docker build from dockerfile
$ docker build - < Dockerfile
Example 3: docker build -t
--tag , -t ----> Name and optionally a tag in the ‘name:tag’ format