diff --git a/dotnet/2.1/Dockerfile b/dotnet/2.1/Dockerfile index d2c26c9..7e21db0 100644 --- a/dotnet/2.1/Dockerfile +++ b/dotnet/2.1/Dockerfile @@ -10,7 +10,7 @@ RUN apt update -y \ && wget https://dot.net/v1/dotnet-install.sh \ && D_V="$(curl -sSL https://dotnet.microsoft.com/en-us/download/dotnet/2.1 | grep -i '

SDK 2.1.*

' | 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 \ + && ./dotnet-install.sh -i /usr/share -v $D_V \ && ln -s /usr/share/dotnet /usr/bin/dotnet USER container diff --git a/dotnet/3.1/Dockerfile b/dotnet/3.1/Dockerfile index c4b59c8..1c6b483 100644 --- a/dotnet/3.1/Dockerfile +++ b/dotnet/3.1/Dockerfile @@ -10,7 +10,7 @@ RUN apt update -y \ && wget https://dot.net/v1/dotnet-install.sh \ && D_V="$(curl -sSL https://dotnet.microsoft.com/en-us/download/dotnet/3.1 | grep -i '

SDK 3.1.*

' | 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 3.1.425 \ + && ./dotnet-install.sh -i /usr/share -v $D_V \ && ln -s /usr/share/dotnet /usr/bin/dotnet