From 8f45b24eb7cea06b8bbf708f08dee1bb316374b3 Mon Sep 17 00:00:00 2001 From: medchedli Date: Wed, 9 Jul 2025 18:30:38 +0100 Subject: [PATCH] chore: ensure consistency in environment variable declarations in frontend dockerfile --- frontend/Dockerfile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 37d64cfd2..3a72b2bad 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -47,9 +47,9 @@ WORKDIR /app COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./ -COPY frontend/package*.json ./frontend/ +COPY frontend/package*.json ./frontend/ -COPY widget/package*.json ./widget/ +COPY widget/package*.json ./widget/ RUN npm install @@ -59,7 +59,7 @@ COPY ./widget ./widget # used to by pass Next.js paching lock file -ENV NEXT_IGNORE_INCORRECT_LOCKFILE=true +ENV NEXT_IGNORE_INCORRECT_LOCKFILE=true ENV NODE_ENV=development ENV CHOKIDAR_USEPOLLING=true ENV WATCHPACK_POLLING=true @@ -72,11 +72,11 @@ CMD ["npm", "run", "dev", "--", "-p", "8080"] FROM base AS production WORKDIR /app -# used to by pass Next.js paching lock file -ENV NEXT_IGNORE_INCORRECT_LOCKFILE=true +# used to by pass Next.js paching lock file +ENV NEXT_IGNORE_INCORRECT_LOCKFILE=true ENV NODE_ENV=production # Uncomment the following line in case you want to disable telemetry during runtime. -ENV NEXT_TELEMETRY_DISABLED 1 +ENV NEXT_TELEMETRY_DISABLED=1 RUN addgroup --system --gid 1001 nodejs RUN adduser --system --uid 1001 nextjs @@ -96,7 +96,7 @@ USER nextjs EXPOSE 8080 -ENV PORT 8080 +ENV PORT=8080 # server.js is created by next build from the standalone output # https://nextjs.org/docs/pages/api-reference/next-config-js/output