As far as I know, You can't host SharePoint site in asp.net core web app. As a workaround, you could register it as provider hosted add-in web component(you could host asp.net core web app in azure).Please refer to following document
How to create SharePoint Online add-in with ASP.NET Core 2.1
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.