Add docker file
Changed kestrel bindings (Docker doesn't resolve loopback)
This commit is contained in:
@@ -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>();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user