Dotnet arm64 fix

This commit is contained in:
QuintenQVD0
2022-11-06 17:51:12 +01:00
parent 83030416ae
commit c0daa84da8
5 changed files with 13 additions and 4 deletions

View File

@@ -9,7 +9,8 @@ RUN apt update -y \
&& apt install -y apt-transport-https wget iproute2 libgdiplus \ && apt install -y apt-transport-https wget iproute2 libgdiplus \
&& wget https://dot.net/v1/dotnet-install.sh \ && wget https://dot.net/v1/dotnet-install.sh \
&& chmod +x 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 USER container
ENV USER=container HOME=/home/container ENV USER=container HOME=/home/container

View File

@@ -9,7 +9,10 @@ RUN apt update -y \
&& apt install -y apt-transport-https wget iproute2 libgdiplus \ && apt install -y apt-transport-https wget iproute2 libgdiplus \
&& wget https://dot.net/v1/dotnet-install.sh \ && wget https://dot.net/v1/dotnet-install.sh \
&& chmod +x 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 USER container
ENV USER=container HOME=/home/container ENV USER=container HOME=/home/container
WORKDIR /home/container WORKDIR /home/container

View File

@@ -9,7 +9,8 @@ RUN apt update -y \
&& apt install -y apt-transport-https wget iproute2 libgdiplus \ && apt install -y apt-transport-https wget iproute2 libgdiplus \
&& wget https://dot.net/v1/dotnet-install.sh \ && wget https://dot.net/v1/dotnet-install.sh \
&& chmod +x 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 USER container
ENV USER=container HOME=/home/container ENV USER=container HOME=/home/container

View File

@@ -9,7 +9,8 @@ RUN apt update -y \
&& apt install -y apt-transport-https wget iproute2 libgdiplus \ && apt install -y apt-transport-https wget iproute2 libgdiplus \
&& wget https://dot.net/v1/dotnet-install.sh \ && wget https://dot.net/v1/dotnet-install.sh \
&& chmod +x 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 USER container
ENV USER=container HOME=/home/container ENV USER=container HOME=/home/container

View File

@@ -5,6 +5,9 @@ cd /home/container
INTERNAL_IP=$(ip route get 1 | awk '{print $(NF-2);exit}') INTERNAL_IP=$(ip route get 1 | awk '{print $(NF-2);exit}')
export INTERNAL_IP 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 # Replace Startup Variables
MODIFIED_STARTUP=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g') MODIFIED_STARTUP=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')
echo -e ":/home/container$ ${MODIFIED_STARTUP}" echo -e ":/home/container$ ${MODIFIED_STARTUP}"