paloni we do not pre-install dotnet on any of our servers, but you can install it yourself by running the following commands as your shell user:
mkdir ~/dotnet
cd ~/dotnet
wget https://builds.dotnet.microsoft.com/dotnet/Sdk/10.0.101/dotnet-sdk-10.0.101-linux-x64.tar.gz
tar zxf dotnet-sdk-10.0.101-linux-x64.tar.gz -C ~/dotnet
echo 'export DOTNET_ROOT=$HOME/dotnet' >> ~/.bash_profile
echo 'export PATH=$PATH:$HOME/dotnet' >> ~/.bash_profile
You'll need to log out ou and log back in to pick up the new environment variables. Once that's done, dotnet should work as expected:
[demo@opal19 ~]$ dotnet --version
10.0.101
To run a dotnet web app:
- Create a Nginx Proxy Port app and assign it to a site.
- Configure your dotnet app to listen on the proxy app's assigned port.
- Run the app.
Hope this helps 🙂