https://docs.docker.com/samples/dotnetcore/
https://docs.microsoft.com/en-us/dotnet/core/docker/build-co...
https://code.visualstudio.com/docs/containers/quickstart-asp...
Be sure you really know what your are doing and understand basic security and containers concepts; there are tons of write ups and articles with the basics.
https://docs.microsoft.com/en-us/visualstudio/docker/tutoria...
Regarding security, I made a blog post years ago on a technology agnostic approach to Docker image security. It seems to be still up to date.
https://sysdogs.com/articles/how-to-secure-container-image