Docker build tricks

From snippet wiki
Jump to navigation Jump to search

To run from a special named Dockerfile soource but still haveing a context to copy files from:

docker build -f- . <Dockerfile_some

Using powershell, it gets even more funny:

Get-Content .\Dockerfile_some | docker build -f- .