From 8f492e4c6cdb6f852de63cc8cfd8dfffa81aad55 Mon Sep 17 00:00:00 2001 From: sriram veeraghanta Date: Mon, 16 Sep 2024 20:58:35 +0530 Subject: [PATCH] fix: disable turbo telemetry on live service --- live/Dockerfile.dev | 4 +++- live/Dockerfile.live | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/live/Dockerfile.dev b/live/Dockerfile.dev index 8b3b63b4f..92dee3e26 100644 --- a/live/Dockerfile.dev +++ b/live/Dockerfile.dev @@ -3,11 +3,13 @@ RUN apk add --no-cache libc6-compat # Set working directory WORKDIR /app - COPY . . RUN yarn global add turbo RUN yarn install EXPOSE 3003 +ENV TURBO_TELEMETRY_DISABLED 1 + VOLUME [ "/app/node_modules", "/app/live/node_modules"] + CMD ["yarn","dev", "--filter=live"] diff --git a/live/Dockerfile.live b/live/Dockerfile.live index 6b83c1722..6664fee97 100644 --- a/live/Dockerfile.live +++ b/live/Dockerfile.live @@ -28,6 +28,8 @@ RUN yarn install COPY --from=builder /app/out/full/ . COPY turbo.json turbo.json +ENV TURBO_TELEMETRY_DISABLED 1 + RUN yarn turbo build --filter=live FROM base AS runner @@ -36,4 +38,6 @@ WORKDIR /app COPY --from=installer /app . # COPY --from=installer /app/live/node_modules ./node_modules +ENV TURBO_TELEMETRY_DISABLED 1 + EXPOSE 3000