mirror of
https://github.com/darksaid98/yolks.git
synced 2026-12-03 14:38:59 +00:00
update dotnet
This commit is contained in:
1 parent
83e940dc40
commit
222b3f16e4
6 files changed
+22
-13
No files matched your search
+4
-3
@@ -6,10 +6,11 @@ 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/7.0 | grep -i '<h3 id="sdk-7.*">SDK 7.*.*</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 7.0.100 \
|
||||
&& ./dotnet-install.sh -i /usr/share -v $D_V \
|
||||
&& ln -s /usr/share/dotnet /usr/bin/dotnet
|
||||
|
||||
USER container
|
||||
|
||||
Reference in new issue
Block a user