docker build | Docker Documentation
docs.docker.com › engine › referenceTo pipe a Dockerfile from STDIN: $ docker build - < Dockerfile. With Powershell on Windows, you can run: Get-Content Dockerfile | docker build -. If you use STDIN or specify a URL pointing to a plain text file, the system places the contents into a file called Dockerfile, and any -f, --file option is ignored.