Once you are up and running with Docker on Windows… it is great! That’s an aside. Back to the job in hand.
So far, I have instantiated Containers from Images. I now wanted to play with DockerFile, which allows you to create Images. I briefly played with the Docker linux examples… but of course you have to get a bit twisted to make those work on Windows. I then went the Windows route, and followed these examples.
The key command is, imho:
docker build -f DockerFile .
Note that VSCode understands that this is a DockerFile:
The code and PowerShell execution is from this DockerFile: