update dotnet
This commit is contained in:
@@ -6,8 +6,9 @@ ENV DEBIAN_FRONTEND noninteractive
|
||||
|
||||
RUN apt update -y \
|
||||
&& apt upgrade -y \
|
||||
&& apt install -y apt-transport-https wget iproute2 libgdiplus \
|
||||
&& wget https://dot.net/v1/dotnet-install.sh \
|
||||
&& apt install -y apt-transport-https wget curl iproute2 libgdiplus \
|
||||
&& wget https://dot.net/v1/dotnet-install.sh \
|
||||
&& D_V="$(curl -sSL https://dotnet.microsoft.com/en-us/download/dotnet/2.1 | grep -i '<h3 id="sdk-2.*">SDK 2.1.*</h3>' | head -1 | awk -F\" '{print $3}' | awk '{print $2;}' | sed 's/<\/h3>//g')" \
|
||||
&& chmod +x dotnet-install.sh \
|
||||
&& ./dotnet-install.sh -i /usr/share -v 2.1.818 \
|
||||
&& ln -s /usr/share/dotnet /usr/bin/dotnet
|
||||
|
Reference in New Issue
Block a user