From 95ce72138fc23fd1839bc1849a14e591836b3e8a Mon Sep 17 00:00:00 2001 From: bitc0de Date: Wed, 17 Dec 2025 15:55:13 +0100 Subject: [PATCH] Fix ENV syntax in Dockerfile --- Dockerfile | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index aa22ae6..0344c98 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,13 +6,18 @@ WORKDIR /app # Copy package files COPY package*.json ./ -# Install dependencies (use npm install instead of ci for better compatibility) +# Install dependencies RUN npm install --production=false # Copy source code COPY . . -# Build Next.js application +# Build Next.js application with output tracing enabled +ENV NEXT_TELEMETRY_DISABLED=1 +RUN npm run build + +# Build Next.js application with output tracing enabled +ENV NEXT_TELEMETRY_DISABLED=1 RUN npm run build # Production stage @@ -26,8 +31,8 @@ RUN pip3 install --no-cache-dir yt-dlp --break-system-packages WORKDIR /app -ENV NODE_ENV production -ENV NEXT_TELEMETRY_DISABLED 1 +ENV NODE_ENV=production +ENV NEXT_TELEMETRY_DISABLED=1 # Create non-root user RUN addgroup --system --gid 1001 nodejs