Check runtime dependencies before choosing Docker scratch
The minimal scratch example works only with a dependency-free executable. Review the required runtime environment before treating a smaller image as a complete application package.
Read the guide