Browse Source
Use the internal port as binding port if available (#162)
davidfowl/dependencies
David Fowler
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/Microsoft.Tye.Hosting/DockerRunner.cs
|
|
|
@ -108,7 +108,7 @@ namespace Microsoft.Tye.Hosting |
|
|
|
status.Ports = ports.Select(p => p.Port); |
|
|
|
|
|
|
|
// These ports should also be passed in not assuming ASP.NET Core
|
|
|
|
environment["ASPNETCORE_URLS"] = string.Join(";", ports.Select(p => $"{p.Protocol ?? "http"}://*:{p.Port}")); |
|
|
|
environment["ASPNETCORE_URLS"] = string.Join(";", ports.Select(p => $"{p.Protocol ?? "http"}://*:{p.InternalPort ?? p.Port}")); |
|
|
|
|
|
|
|
portString = string.Join(" ", ports.Select(p => $"-p {p.Port}:{p.InternalPort ?? p.Port}")); |
|
|
|
|
|
|
|
|