docker build steps redirect output to file code example
Example: how to create docker image from custom filename
cat DockerFile.debian.foo | docker build -t debian.foo -
cat DockerFile.debian.foo | docker build -t debian.foo -