diff options
| author | ga1az <ga1az@outlook.com> | 2025-06-25 01:21:09 -0400 |
|---|---|---|
| committer | ga1az <ga1az@outlook.com> | 2025-06-25 01:21:09 -0400 |
| commit | 998ee086e5f448c32fba1a61dbff5ef4f8a428d9 (patch) | |
| tree | ff93a506b397ded0584d27d5dc9594773e8833d9 | |
| parent | 1f2c505efea465a1ff8c8c0e435490dfe16637ec (diff) | |
| download | opencut-998ee086e5f448c32fba1a61dbff5ef4f8a428d9.tar.gz | |
chore(docker): update Dockerfile to set NODE_ENV to production and ensure telemetry is disabled
| -rw-r--r-- | apps/web/Dockerfile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/web/Dockerfile b/apps/web/Dockerfile index 8b13ce38..46eeb102 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
|
