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 ASPNETCORE_URLS http://+:5000
EXPOSE 5000
When running the docker image with the below command, I'm trying to pass optional arguments that will be passed down to my exe endpoint.
docker rm myapp
docker run --net="host" --name myapp -p 5000:5000 myappservice