Skip to content

Commit

Permalink
set dotnet install dir to /usr/share/dotnet (#161)
Browse files Browse the repository at this point in the history
set dotnet install dir to a shared location to be used by non-root users: `/usr/share/dotnet`
  • Loading branch information
martinmesserli authored Oct 30, 2023
1 parent 41cd970 commit dcfe69d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker/pulumi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 "/root/.dotnet:/pulumi/bin:${PATH}"
ENV DOTNET_ROOT /root/.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
Expand Down

0 comments on commit dcfe69d

Please sign in to comment.