An ASP.Net Core program with minimal settings for a static website.
Clone this repo into new folder(e.g., min-aspnetcore)
$ git clone https://github.com/gmzdev/MinimalAspNetCoreStaticWebsite min-aspnetcore
$ cd min-aspnetcore
Build the project
$ dotnet restore
$ dotnet build
Publish the project to ./app
folder
$ dotnet publish -o app
Deploying to Heroku, make sure Docker is installed on your system.
Login to registry container with the following command:
$ heroku container:login
Create a new min-aspnetcore
or your desired app name in Heroku
$ heroku create min-aspnetcore
Build the image and push to Container Registry
$ heroku container:push web
Open the app in your browser
$ heroku open
Sample Published Site https://min-aspnetcore.herokuapp.com/