diff --git a/tools/docker/images/ubuntu-22.04.Dockerfile b/tools/docker/images/ubuntu-22.04.Dockerfile index a9c39b3da5..3775dbb1be 100644 --- a/tools/docker/images/ubuntu-22.04.Dockerfile +++ b/tools/docker/images/ubuntu-22.04.Dockerfile @@ -22,13 +22,8 @@ RUN apt-get update -qq \ # Install .Net # see: https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntu -# note: Ubuntu-22.04+ won't support dotnet-sdk-3.1 # see: https://github.com/dotnet/core/pull/7423/files RUN apt-get update -qq \ -&& apt-get install -yq wget apt-transport-https \ -&& wget -q https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb \ -&& dpkg -i packages-microsoft-prod.deb \ -&& apt-get update -qq \ && apt-get install -yq dotnet-sdk-6.0 \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* diff --git a/tools/docker/test/ubuntu-22.04/dotnet.Dockerfile b/tools/docker/test/ubuntu-22.04/dotnet.Dockerfile index 90e9f262bc..dabae8071e 100644 --- a/tools/docker/test/ubuntu-22.04/dotnet.Dockerfile +++ b/tools/docker/test/ubuntu-22.04/dotnet.Dockerfile @@ -10,11 +10,7 @@ RUN apt-get update -qq \ # Install .Net # see https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntu#2110- RUN apt-get update -qq \ -&& apt-get install -yq wget apt-transport-https \ -&& wget -q https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb \ -&& dpkg -i packages-microsoft-prod.deb \ -&& apt-get update -qq \ -&& DEBIAN_FRONTEND=noninteractive apt-get install -yq dotnet-sdk-3.1 dotnet-sdk-6.0 \ +&& apt-get install -yq dotnet-sdk-6.0 \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* # Trigger first run experience by running arbitrary cmd