99 set baseImageTag to cat("$REPO:", tagVersion, "-", OS_VERSION, ARCH_TAG_SUFFIX) ^
1010
1111 _ Workaround for https://bugs.launchpad.net/ubuntu/+source/tar/+bug/2059734. Remove when fixed. ^
12- set useNobleArm32Workaround to OS_VERSION_BASE = "noble" && ARCH_SHORT = "arm" ^
13- set osVersionBase to when(useNobleArm32Workaround, "jammy", OS_VERSION_BASE) ^
12+ set useJammyArm32Workaround to (OS_VERSION_BASE = "noble" || OS_VERSION_BASE = "trixie") && ARCH_SHORT = "arm" ^
13+ set osVersionBase to
14+ when(useJammyArm32Workaround,
15+ when(OS_VERSION_BASE = "noble",
16+ "jammy",
17+ "bookworm"),
18+ OS_VERSION_BASE) ^
1419
1520 set internalInstallerBase to when(isAlpine || isAzureLinux,
1621 baseImageTag,
1722 cat(ARCH_VERSIONED, "/buildpack-deps:", osVersionBase, "-curl")) ^
1823
24+ set isPowerShellSupported to !(isAlpine && ARCH_SHORT != "x64") ^
25+ set includePowerShellVars to isPowerShellSupported || dotnetVersion = "8.0" || dotnetVersion = "9.0" ^
26+
1927 set pkgs to filter(
2028 when(isAlpine,
2129 when(dotnetVersion = "8.0",
5462 ]
5563 )), len)
5664}}ARG REPO=mcr.microsoft.com/dotnet/aspnet
57- {{if isInternal || useNobleArm32Workaround :# Installer image
65+ {{if isInternal || useJammyArm32Workaround :# Installer image
5866FROM {{internalInstallerBase}} AS installer{{if isInternal:
5967
6068ARG ACCESSTOKEN}}
@@ -68,27 +76,27 @@ RUN {{InsertTemplate("../Dockerfile.linux.install-pkgs",
6876 [
6977 "install-method": "download-and-install",
7078 "is-internal": isInternal,
71- "disable-first-run-experience": useNobleArm32Workaround ,
72- "no-version-env-var": useNobleArm32Workaround
79+ "disable-first-run-experience": useJammyArm32Workaround ,
80+ "no-version-env-var": useJammyArm32Workaround
7381 ])}}
7482
7583
7684# .NET SDK image
7785}}FROM {{baseImageTag}}
7886
79- {{InsertTemplate("Dockerfile.envs", ["is-internal": isInternal])}}
87+ {{InsertTemplate("Dockerfile.envs", ["is-internal": isInternal, "include-powershell-vars": includePowerShellVars ])}}
8088
8189RUN {{InsertTemplate("../Dockerfile.linux.install-pkgs",
8290[
8391 "pkgs": pkgs
8492])}}
8593
86- {{if isInternal || useNobleArm32Workaround :COPY --from=installer ["/usr/share/dotnet", "/usr/share/dotnet"]
94+ {{if isInternal || useJammyArm32Workaround :COPY --from=installer ["/usr/share/dotnet", "/usr/share/dotnet"]
8795
8896{{InsertTemplate("Dockerfile.linux.first-run")}}^else:{{
8997 InsertTemplate("Dockerfile.linux.install-sdk",
9098 [
9199 "install-method": "download-and-install",
92- ])}}}}{{if !(isAlpine && ARCH_SHORT != "x64") :
100+ ])}}}}{{if isPowerShellSupported :
93101
94102{{InsertTemplate("Dockerfile.linux.install-powershell")}}}}
0 commit comments