Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

disable telemetry of yarn and next by default

tim-hub61ae4185737f
diff --git a/Dockerfile b/Dockerfile
index c2110abca..31ea0054d 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