ASP.NET Core MVC on Heroku via Docker
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
Controllers
Tools
Views
wwwroot/css
.gitignore
Dockerfile
HeroicHaiku.csproj
LICENSE
Program.cs
README.md
Startup.cs

README.md

ASP.NET Core MVC on Heroku with Docker

A barebones demo showing that an ASP.NET Core MVC app can run easily on Heroku via Docker.

Developed on a Mac with the .NET Core SDK v1.1.

Requirements

Up and Running

git clone git@github.com:jyunderwood/HeroicHaiku.git
cd HeroicHaiku

heroku create name-of-your-application
docker login --username=_ --password=$(heroku auth:token) registry.heroku.com

dotnet publish
docker build bin/Debug/netcoreapp1.1/publish -t name-of-your-application

docker tag name-of-your-application registry.heroku.com/name-of-your-application/web
docker push registry.heroku.com/name-of-your-application/web

Your first push will take some time, but subsequent pushes will only update the latest layer.

More help

More information about this project has been posted on my blog