tools/docker: Fix ubuntu-22.04

This commit is contained in:
Mizux Seiha
2022-08-22 15:49:28 +02:00
parent 0f122297a9
commit 44a118e8fa
2 changed files with 1 additions and 10 deletions

View File

@@ -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/*

View File

@@ -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