docker run -ti -p 5000:5000 -v {{Your Project Path}}:/app hsuizip/dotnet-core-angular2 /bin/bash
cd app
dotnet new angular
dotnet restore
npm install
open file Program.cs add .UseUrls("http://0.0.0.0:5000")
var host = new WebHostBuilder()
.UseKestrel()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseIISIntegration()
.UseStartup<Startup>()
.UseUrls("http://0.0.0.0:5000")
.Build();
Setting Develop Mode
using Mac/Linux, execute export ASPNETCORE_ENVIRONMENT=Development
From This Url:https://gist.github.com/jzlin/829d09af71e48365319ac8662ee3f5ef
dotnet build
dotnet run
Opent http://localhost:5000
Content type
Image
Digest
Size
635.4 MB
Last updated
over 9 years ago
docker pull hsuizip/dotnet-core-angular2