From 998ee086e5f448c32fba1a61dbff5ef4f8a428d9 Mon Sep 17 00:00:00 2001 From: ga1az Date: Wed, 25 Jun 2025 01:21:09 -0400 Subject: [PATCH 1/2] chore(docker): update Dockerfile to set NODE_ENV to production and ensure telemetry is disabled --- apps/web/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/web/Dockerfile b/apps/web/Dockerfile index 8b13ce3..46eeb10 100644 --- a/apps/web/Dockerfile +++ b/apps/web/Dockerfile @@ -19,7 +19,8 @@ COPY apps/web/ apps/web/ COPY packages/db/ packages/db/ COPY packages/auth/ packages/auth/ -ENV NEXT_TELEMETRY_DISABLED=1 +ENV NODE_ENV production +ENV NEXT_TELEMETRY_DISABLED 1 WORKDIR /app/apps/web RUN bun run build @@ -28,7 +29,8 @@ RUN bun run build FROM base AS runner WORKDIR /app -ENV NEXT_TELEMETRY_DISABLED=1 +ENV NODE_ENV production +ENV NEXT_TELEMETRY_DISABLED 1 RUN addgroup --system --gid 1001 nodejs RUN adduser --system --uid 1001 nextjs From d8494185e07915529bb70fde23f16bb972dc64af Mon Sep 17 00:00:00 2001 From: ILoveScratch Date: Wed, 25 Jun 2025 14:28:56 +0800 Subject: [PATCH 2/2] docs: change commands in README adapted to different platforms --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 615dbcd..89828c0 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,16 @@ Before you begin, ensure you have the following installed on your system: Navigate into the web app's directory and create a `.env` file from the example: ```bash cd apps/web - cp .env.example .env + + + # Unix/Linux/Mac + cp .env.example .env.local + + # Windows Command Prompt + copy .env.example .env.local + + # Windows PowerShell + Copy-Item .env.example .env.local ``` *The default values in the `.env` file should work for local development.*