I have a Docker file based on windowsservercore, which I am hosting an ASP.net Core web application.
Snippet from docker file
ENTRYPOINT [\"my.exe\"]
ENV
You need to have either a CMD
https://docs.docker.com/engine/reference/builder/#cmd
Or an ENTRYPOINT
https://docs.docker.com/engine/reference/builder/#entrypoint
In your Dockerfile.
You should read this discussion:
What is the difference between CMD and ENTRYPOINT in a Dockerfile?
And also that one:
Passing Different Arguments When Running Docker Image Multiple Times