From c74121fefc77fcd953831e73af0f6a85fb500f48 Mon Sep 17 00:00:00 2001 From: Kukks Date: Tue, 2 Jun 2020 11:37:14 +0200 Subject: [PATCH] Opt out from telemetry data in docker https://www.michaelcrump.net/part12-aspnetcore/ https://docs.microsoft.com/en-us/dotnet/core/tools/telemetry --- amd64.Dockerfile | 2 ++ arm32v7.Dockerfile | 2 ++ arm64v8.Dockerfile | 2 ++ 3 files changed, 6 insertions(+) diff --git a/amd64.Dockerfile b/amd64.Dockerfile index db37fb6f6..86ba2bf64 100644 --- a/amd64.Dockerfile +++ b/amd64.Dockerfile @@ -1,4 +1,5 @@ FROM mcr.microsoft.com/dotnet/core/sdk:3.1.202 AS builder +ENV DOTNET_CLI_TELEMETRY_OPTOUT=1 WORKDIR /source COPY nuget.config nuget.config COPY Build/Common.csproj Build/Common.csproj @@ -27,6 +28,7 @@ ENV LANG en_US.UTF-8 WORKDIR /datadir WORKDIR /app ENV BTCPAY_DATADIR=/datadir +ENV DOTNET_CLI_TELEMETRY_OPTOUT=1 VOLUME /datadir COPY --from=builder "/app" . diff --git a/arm32v7.Dockerfile b/arm32v7.Dockerfile index 144bde2d0..d4d197291 100644 --- a/arm32v7.Dockerfile +++ b/arm32v7.Dockerfile @@ -1,5 +1,6 @@ # This is a manifest image, will pull the image with the same arch as the builder machine FROM mcr.microsoft.com/dotnet/core/sdk:3.1.202 AS builder +ENV DOTNET_CLI_TELEMETRY_OPTOUT=1 RUN apt-get update \ && apt-get install -qq --no-install-recommends qemu qemu-user-static qemu-user binfmt-support @@ -32,6 +33,7 @@ ENV LANG en_US.UTF-8 WORKDIR /datadir WORKDIR /app ENV BTCPAY_DATADIR=/datadir +ENV DOTNET_CLI_TELEMETRY_OPTOUT=1 VOLUME /datadir COPY --from=builder "/app" . diff --git a/arm64v8.Dockerfile b/arm64v8.Dockerfile index 30fd3a894..642513d45 100644 --- a/arm64v8.Dockerfile +++ b/arm64v8.Dockerfile @@ -1,5 +1,6 @@ # This is a manifest image, will pull the image with the same arch as the builder machine FROM mcr.microsoft.com/dotnet/core/sdk:3.1.202 AS builder +ENV DOTNET_CLI_TELEMETRY_OPTOUT=1 RUN apt-get update \ && apt-get install -qq --no-install-recommends qemu qemu-user-static qemu-user binfmt-support @@ -32,6 +33,7 @@ ENV LANG en_US.UTF-8 WORKDIR /datadir WORKDIR /app ENV BTCPAY_DATADIR=/datadir +ENV DOTNET_CLI_TELEMETRY_OPTOUT=1 VOLUME /datadir COPY --from=builder "/app" .