Add docker file

Changed kestrel bindings (Docker doesn't resolve loopback)
This commit is contained in:
2019-03-18 09:58:44 +01:00
parent cb34f72d83
commit 74327eb381
3 changed files with 18 additions and 1 deletions

View File

@@ -37,7 +37,7 @@ namespace LaDOSE.Api
return WebHost.CreateDefaultBuilder(args)
.UseContentRoot(Directory.GetCurrentDirectory())
.UseConfiguration(config)
.UseKestrel(options => options.Listen(IPAddress.Loopback,int.Parse(config["Port"])))
.UseKestrel(options => options.Listen(IPAddress.Any,int.Parse(config["Port"])))
.UseStartup<Startup>();
}
}