From 5d9e836df3948e91f70c3264be99391c4329ff0c Mon Sep 17 00:00:00 2001 From: martincostello Date: Mon, 27 Nov 2023 12:43:54 +0000 Subject: [PATCH] Ensure .NET SDK is installed Ensure that the .NET SDK in global.json is installed on the Docker image to account for lag between new release and Docker image publishing. --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 984ddad1..268f2a85 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,9 @@ RUN apt update && apt install --yes clang gcc-aarch64-linux-gnu llvm zlib1g-dev 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 --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