Skip to content

Commit

Permalink
Ensure .NET SDK is installed
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
martincostello committed Nov 27, 2023
1 parent 29c9fc7 commit 5d9e836
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5d9e836

Please sign in to comment.