From 5937ca408defa56221e11b4a5755dde41c7b8cec Mon Sep 17 00:00:00 2001 From: Martin Costello Date: Mon, 27 Nov 2023 12:54:15 +0000 Subject: [PATCH] Pin dotnet-install.sh Get the download script from GitHub by its SHA. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 268f2a85..9051fcf5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ WORKDIR /source COPY . . -RUN DOTNET_INSTALL_DIR="/usr/share/dotnet" && curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --jsonfile global.json --install-dir $DOTNET_INSTALL_DIR +RUN DOTNET_INSTALL_DIR="/usr/share/dotnet" && curl -sSL https://raw.githubusercontent.com/dotnet/install-scripts/5b142a1e445a6f060d6430b661408989e9580b85/src/dotnet-install.sh | bash /dev/stdin --jsonfile global.json --install-dir $DOTNET_INSTALL_DIR RUN --mount=type=cache,id=nuget,target=/root/.nuget/packages \ dotnet publish ./src/LondonTravel.Skill --runtime linux-arm64 --self-contained true /p:AssemblyName=bootstrap /p:PublishAot=true /p:PublishReadyToRun=true