diff --git a/tools/release/amd64.Dockerfile b/tools/release/amd64.Dockerfile index b50120534d..6a291878de 100644 --- a/tools/release/amd64.Dockerfile +++ b/tools/release/amd64.Dockerfile @@ -39,12 +39,11 @@ RUN curl --location-trusted \ && rm -rf swig-4.1.1 # Install .Net -# see https://docs.microsoft.com/en-us/dotnet/core/install/linux-centos#centos-7- -RUN rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm \ -&& dnf -y update \ -&& dnf -y install dotnet-sdk-3.1 dotnet-sdk-6.0 \ -&& dnf clean all \ -&& rm -rf /var/cache/dnf +# see: https://learn.microsoft.com/en-us/dotnet/core/install/linux-scripted-manual#scripted-install +RUN wget -q "https://dot.net/v1/dotnet-install.sh" \ +&& chmod a+x dotnet-install.sh \ +&& ./dotnet-install.sh -c 3.1 -i /usr/local/bin \ +&& ./dotnet-install.sh -c 6.0 -i /usr/local/bin # Trigger first run experience by running arbitrary cmd RUN dotnet --info diff --git a/tools/release/arm64.Dockerfile b/tools/release/arm64.Dockerfile index 3ecf2e3007..c4e63849fe 100644 --- a/tools/release/arm64.Dockerfile +++ b/tools/release/arm64.Dockerfile @@ -42,7 +42,7 @@ RUN curl --location-trusted \ && rm -rf swig-4.1.1 # Install .Net -# see https://docs.microsoft.com/en-us/dotnet/core/install/linux-centos#centos-7- +# see: https://learn.microsoft.com/en-us/dotnet/core/install/linux-scripted-manual#scripted-install RUN wget -q "https://dot.net/v1/dotnet-install.sh" \ && chmod a+x dotnet-install.sh \ && ./dotnet-install.sh -c 3.1 -i /usr/local/bin \