ci/tools: Simplify alpine .Net 8.0 SDK install

This commit is contained in:
Corentin Le Molgat
2025-06-02 16:57:14 +02:00
parent 1b6cb6134e
commit 77c21707ad
4 changed files with 7 additions and 77 deletions

View File

@@ -1,19 +1,7 @@
FROM ortools/make:alpine_swig AS env
# Install .Net
RUN apk add --no-cache wget icu-libs libintl \
&& mkdir -p /usr/share/dotnet \
&& ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet
## .Net 6.0
## see: https://dotnet.microsoft.com/download/dotnet-core/6.0
RUN dotnet_sdk_version=6.0.405 \
&& wget -qO dotnet.tar.gz \
"https://dotnetcli.azureedge.net/dotnet/Sdk/$dotnet_sdk_version/dotnet-sdk-${dotnet_sdk_version}-linux-musl-x64.tar.gz" \
&& dotnet_sha512='ca98ebc5858339c5ce4164f5f5932a5bf8aae9f13d54adf382a41f5e6d1302df278bd7e218ecc2f651dcf67e705c40c43347cd33956732c6bd88d3b3d2881b84' \
&& echo "$dotnet_sha512 dotnet.tar.gz" | sha512sum -c - \
&& tar -C /usr/share/dotnet -oxzf dotnet.tar.gz \
&& rm dotnet.tar.gz
# .NET install
RUN apk add --no-cache dotnet8-sdk
# Trigger first run experience by running arbitrary cmd
RUN dotnet --info