From f4417e7a6b1bad9e473045d248064d7f640bb280 Mon Sep 17 00:00:00 2001 From: Martin Messerli Date: Tue, 17 Oct 2023 07:01:54 +0200 Subject: [PATCH] set dotnet install dir to a shared location to be used by non-root users /usr/share/dotnet --- docker/pulumi/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/pulumi/Dockerfile b/docker/pulumi/Dockerfile index d65e4510..c8e40ca7 100644 --- a/docker/pulumi/Dockerfile +++ b/docker/pulumi/Dockerfile @@ -77,9 +77,9 @@ RUN apt-get update -y && \ # Install dotnet 6.0 using instructions from: # https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script -RUN curl -fsSL https://dot.net/v1/dotnet-install.sh | bash -s -- -channel 6.0 -ENV PATH "/home/pulumi-kubernetes-operator/.dotnet:/pulumi/bin:${PATH}" -ENV DOTNET_ROOT /home/pulumi-kubernetes-operator/.dotnet +RUN curl -fsSL https://dot.net/v1/dotnet-install.sh | bash -s -- -channel 6.0 -InstallDir /usr/share/dotnet +ENV PATH "/usr/share/dotnet:/pulumi/bin:${PATH}" +ENV DOTNET_ROOT /usr/share/dotnet ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT 1 # Allow newer dotnet version (e.g. 6) to build projects targeting older frameworks (v3.1) ENV DOTNET_ROLL_FORWARD Major