From 0ee6579a667abfd31c3c9b72d248a00b0407fd06 Mon Sep 17 00:00:00 2001 From: Andreas Date: Mon, 22 Feb 2021 15:18:50 +0100 Subject: [PATCH] Tool path specified for dotnet tool installation (#1249) * Tool path specified for dotnet tool installation A tool path is specified to prevent installation of dotnet tools into /root/.dotnet/. Instead dotnet tools are installed into /var/cache/dotnet. This allows all users to access installed dotnet tools. Especially useful in unprivileged container runtimes. Fixes #1153 * Old global option removed * PATH updated * typo * Installing into /var/cache/dotnet/tools --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index a516f703..9e43826a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -147,9 +147,9 @@ RUN bundle install RUN wget --tries=5 -O dotnet-install.sh https://dot.net/v1/dotnet-install.sh \ && chmod +x dotnet-install.sh \ && ./dotnet-install.sh --install-dir /usr/share/dotnet -channel Current -version latest \ - && /usr/share/dotnet/dotnet tool install -g dotnet-format + && /usr/share/dotnet/dotnet tool install --tool-path /var/cache/dotnet/tools dotnet-format -ENV PATH="${PATH}:/root/.dotnet/tools:/usr/share/dotnet" +ENV PATH="${PATH}:/var/cache/dotnet/tools:/usr/share/dotnet" ############################## # Installs Perl dependencies #