From a63109c3849575e6cacd82a1cc9c05364b2130c4 Mon Sep 17 00:00:00 2001 From: Toni Date: Wed, 13 Sep 2023 19:20:57 +0300 Subject: [PATCH] Install dotnet tools to home --- 6/Dockerfile | 13 ++++++------- 7/Dockerfile | 13 ++++++------- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/6/Dockerfile b/6/Dockerfile index f7f4f4a..1faf21f 100644 --- a/6/Dockerfile +++ b/6/Dockerfile @@ -12,15 +12,14 @@ COPY 99microsoft-dotnet.pref /etc/apt/preferences.d RUN sudo apt-get update && \ sudo apt-get -y install gettext-base dotnet-sdk-6.0 -# Install trx2junit to used during build +# Install trx2junit to be used during build RUN dotnet tool install -g trx2junit # Install dotnet tools to be copied to the target image -RUN mkdir dotnet-tools -RUN dotnet tool install --tool-path dotnet-tools dotnet-trace -RUN dotnet tool install --tool-path dotnet-tools dotnet-counters -RUN dotnet tool install --tool-path dotnet-tools dotnet-dump -RUN dotnet tool install --tool-path dotnet-tools dotnet-gcmon -RUN dotnet tool install --tool-path dotnet-tools dotnet-stack +RUN dotnet tool install --tool-path ~/dotnet-tools dotnet-trace +RUN dotnet tool install --tool-path ~/dotnet-tools dotnet-counters +RUN dotnet tool install --tool-path ~/dotnet-tools dotnet-dump +RUN dotnet tool install --tool-path ~/dotnet-tools dotnet-gcmon +RUN dotnet tool install --tool-path ~/dotnet-tools dotnet-stack ENV PATH="${PATH}:/home/circleci/.dotnet/tools" diff --git a/7/Dockerfile b/7/Dockerfile index 3ad4866..4aa8fab 100644 --- a/7/Dockerfile +++ b/7/Dockerfile @@ -12,15 +12,14 @@ COPY 99microsoft-dotnet.pref /etc/apt/preferences.d RUN sudo apt-get update && \ sudo apt-get -y install gettext-base dotnet-sdk-7.0 -# Install trx2junit to used during build +# Install trx2junit to be used during build RUN dotnet tool install -g trx2junit # Install dotnet tools to be copied to the target image -RUN mkdir dotnet-tools -RUN dotnet tool install --tool-path dotnet-tools dotnet-trace -RUN dotnet tool install --tool-path dotnet-tools dotnet-counters -RUN dotnet tool install --tool-path dotnet-tools dotnet-dump -RUN dotnet tool install --tool-path dotnet-tools dotnet-gcmon -RUN dotnet tool install --tool-path dotnet-tools dotnet-stack +RUN dotnet tool install --tool-path ~/dotnet-tools dotnet-trace +RUN dotnet tool install --tool-path ~/dotnet-tools dotnet-counters +RUN dotnet tool install --tool-path ~/dotnet-tools dotnet-dump +RUN dotnet tool install --tool-path ~/dotnet-tools dotnet-gcmon +RUN dotnet tool install --tool-path ~/dotnet-tools dotnet-stack ENV PATH="${PATH}:/home/circleci/.dotnet/tools"