1
0
mirror of https://github.com/mikecao/umami.git synced 2021-05-17 18:46:32 +03:00

Merge pull request #214 from TuiSoftware/disable-telemetry-by-default

disable telemetry of yarn and next by default
This commit is contained in:
Mike Cao
2020-09-24 20:16:58 -07:00
committed by GitHub

View File

@@ -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