From 70c9406b04c0985d5cef354bd4633905879dea57 Mon Sep 17 00:00:00 2001 From: alexyaang <59073590+alexyaang@users.noreply.github.com> Date: Thu, 21 Sep 2023 12:32:47 -0400 Subject: [PATCH] remove hard coded ports --- src/tasks/netSdk/netSdkTaskUtils.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/tasks/netSdk/netSdkTaskUtils.ts b/src/tasks/netSdk/netSdkTaskUtils.ts index 061b7eb2a0..6ef4d83711 100644 --- a/src/tasks/netSdk/netSdkTaskUtils.ts +++ b/src/tasks/netSdk/netSdkTaskUtils.ts @@ -65,10 +65,6 @@ export async function getNetSdkRunCommand(isProjectWebApp: boolean, imageName: s entrypoint: await getDockerOSType() === 'windows' ? 'cmd.exe' : '/bin/sh' }; - if (isProjectWebApp) { - options.exposePorts = [8080, 80]; // the default port is 8080 for .NET 8 and 80 for .NET 7 - } - const command = await client.runContainer(options); const quotedArgs = Shell.getShellOrDefault().quote(command.args); const commandLine = [client.commandName, ...quotedArgs].join(' ');