Question: Building and Running dotnet 8 in Docker Container throws an error:
" /usr/bin/dotnet: no such file or directory".
Login to See the Rest of the Answer
Answer: Make sure you install dotnet on the host machine, then in your docker-compose bind usr/bin to Container usr/bin.
This will resolve the error. Dotnet 8 has issues publishing Self-Contained Applications.