From 61ae4185737f79e81c7b0823a932aad6b3a540ae Mon Sep 17 00:00:00 2001 From: tim-hub Date: Thu, 24 Sep 2020 21:23:59 +1200 Subject: [PATCH] disable telemetry of yarn and next by default --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index c2110abc..31ea0054 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,7 @@ ENV DATABASE_URL "postgresql://umami:umami@db:5432/umami" \ DATABASE_TYPE=$DATABASE_TYPE WORKDIR /build +RUN yarn config set --home enableTelemetry 0 COPY package.json yarn.lock /build/ # Install only the production dependencies @@ -17,6 +18,7 @@ RUN cp -R node_modules/ prod_node_modules/ RUN yarn install --frozen-lockfile COPY . /build +RUN yarn next telemetry disable RUN yarn build # Production image