Check out example codes for "asp.net core 3.1 publish on ubantu". It will help you in understanding the concepts better.

Code Example 1

dotnet publish --configuration Release

Learn ReactJs, React Native from akashmittal.com