fix: migrate dotnet from msft images to script install

This commit is contained in:
Ruben Fiszel
2025-09-29 09:44:04 +00:00
parent 8266fb84b0
commit cfec8e99fb
4 changed files with 21 additions and 9 deletions
+6 -2
View File
@@ -57,8 +57,12 @@ RUN apt-get update \
RUN rustup component add rustfmt
# C#
COPY --from=mcr.microsoft.com/dotnet/sdk:9.0 /usr/bin/dotnet /usr/bin/dotnet
ENV DOTNET_ROOT="/usr/bin"
RUN wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh \
&& chmod +x dotnet-install.sh \
&& ./dotnet-install.sh --channel 9.0 --install-dir /usr/share/dotnet \
&& ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet \
&& rm dotnet-install.sh
# Nushell
COPY --from=ghcr.io/nushell/nushell:0.101.0-bookworm /usr/bin/nu /usr/bin/nu