C# .Net ConsoleApp in a Docker-Container run on Linux

I have a question about C# and Docker.

I wrote a ConsoleApp with Visual Studio and would like to port it to a Docker container to run the container on a Linux system. Is that possible?

Many thanks for your help

I have found various articles, but so far none that could solve my problem.

Best regards