build docker image without dockerfile code example
Example 1: how to build docker image
docker build <Dockerfile path> -t image-name
Example 2: how to create docker image from custom filename
cat DockerFile.debian.foo | docker build -t debian.foo -