Dotnet arm64 fix
This commit is contained in:
@@ -9,7 +9,8 @@ RUN apt update -y \
|
||||
&& apt install -y apt-transport-https wget iproute2 libgdiplus \
|
||||
&& wget https://dot.net/v1/dotnet-install.sh \
|
||||
&& chmod +x dotnet-install.sh \
|
||||
&& ./dotnet-install.sh -i /usr/local/bin/ -v 2.1.818
|
||||
&& ./dotnet-install.sh -i /usr/share -v 2.1.818 \
|
||||
&& ln -s /usr/share/dotnet /usr/bin/dotnet
|
||||
|
||||
USER container
|
||||
ENV USER=container HOME=/home/container
|
||||
|
@@ -9,7 +9,10 @@ RUN apt update -y \
|
||||
&& apt install -y apt-transport-https wget iproute2 libgdiplus \
|
||||
&& wget https://dot.net/v1/dotnet-install.sh \
|
||||
&& chmod +x dotnet-install.sh \
|
||||
&& ./dotnet-install.sh -i /usr/local/bin/ -v 3.1.424
|
||||
&& ./dotnet-install.sh -i /usr/share -v 3.1.424 \
|
||||
&& ln -s /usr/share/dotnet /usr/bin/dotnet
|
||||
|
||||
|
||||
USER container
|
||||
ENV USER=container HOME=/home/container
|
||||
WORKDIR /home/container
|
||||
|
@@ -9,7 +9,8 @@ RUN apt update -y \
|
||||
&& apt install -y apt-transport-https wget iproute2 libgdiplus \
|
||||
&& wget https://dot.net/v1/dotnet-install.sh \
|
||||
&& chmod +x dotnet-install.sh \
|
||||
&& ./dotnet-install.sh -i /usr/local/bin/ -v 5.0.408
|
||||
&& ./dotnet-install.sh -i /usr/share -v 5.0.408 \
|
||||
&& ln -s /usr/share/dotnet /usr/bin/dotnet
|
||||
|
||||
USER container
|
||||
ENV USER=container HOME=/home/container
|
||||
|
@@ -9,7 +9,8 @@ RUN apt update -y \
|
||||
&& apt install -y apt-transport-https wget iproute2 libgdiplus \
|
||||
&& wget https://dot.net/v1/dotnet-install.sh \
|
||||
&& chmod +x dotnet-install.sh \
|
||||
&& ./dotnet-install.sh -i /usr/local/bin/
|
||||
&& ./dotnet-install.sh -i /usr/share \
|
||||
&& ln -s /usr/share/dotnet /usr/bin/dotnet
|
||||
|
||||
USER container
|
||||
ENV USER=container HOME=/home/container
|
||||
|
@@ -5,6 +5,9 @@ cd /home/container
|
||||
INTERNAL_IP=$(ip route get 1 | awk '{print $(NF-2);exit}')
|
||||
export INTERNAL_IP
|
||||
|
||||
# set this variable, dotnet needs it even without it it reports to `dotnet --info` it can not start any aplication without this
|
||||
export DOTNET_ROOT=/usr/share/
|
||||
|
||||
# Replace Startup Variables
|
||||
MODIFIED_STARTUP=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')
|
||||
echo -e ":/home/container$ ${MODIFIED_STARTUP}"
|
||||
|
Reference in New Issue
Block a user