From 175d889e62b683bc96e85385223f8549ea0762e3 Mon Sep 17 00:00:00 2001 From: s0ders <39492740+s0ders@users.noreply.github.com> Date: Thu, 8 May 2025 18:41:13 +0200 Subject: [PATCH] chore(client/Dockerfile): replaced legacy ENV syntax for key/value. (#149) See https://docs.docker.com/reference/dockerfile/#env explaining that the legacy syntax "ENV key value" is now deprecated. The new syntax "ENV key=value foo=bar" allows for clearer Dockerfiles. --- client/Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/client/Dockerfile b/client/Dockerfile index 2534c7a..e8f3180 100644 --- a/client/Dockerfile +++ b/client/Dockerfile @@ -17,7 +17,7 @@ COPY . . # Next.js collects completely anonymous telemetry data about general usage. # Learn more here: https://nextjs.org/telemetry -ENV NEXT_TELEMETRY_DISABLED 1 +ENV NEXT_TELEMETRY_DISABLED=1 ARG NEXT_PUBLIC_BACKEND_URL ARG NEXT_PUBLIC_CLOUD ENV NEXT_PUBLIC_BACKEND_URL=${NEXT_PUBLIC_BACKEND_URL} @@ -29,8 +29,8 @@ RUN npm run build FROM base AS runner WORKDIR /app -ENV NODE_ENV production -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 @@ -50,7 +50,7 @@ USER nextjs EXPOSE 3002 -ENV PORT 3002 -ENV HOSTNAME "0.0.0.0" +ENV PORT=3002 +ENV HOSTNAME="0.0.0.0" CMD ["node", "server.js"] \ No newline at end of file