Public Repository

Last pushed: 8 months ago
Short Description
Short description is empty for this repo.
Full Description

Run DotNet Core and Angular2 Container

docker run -ti -p 5000:5000 -v {{Your Project Path}}:/app hsuizip/dotnet-core-angular2 /bin/bash

Uaage

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

Docker Pull Command
Owner
hsuizip