C++ Windows binary and scratch image

I am ZERO in Windows.

I have a C++ application that uses a DLL file from someone else. I want to create a Dockerfile such that, the first stage runs the Makefile to generate the binary and the second stage copies over the binary to the scratch image. The intent is to create an image of small size.


  1. What are the general recommendation w.r.t. scratch images and Windows based binaries?
  2. Is nanoserver an example of distroless images?