11# Install dependencies only when needed
2- FROM node:23.7 .0-alpine AS deps
2+ FROM node:24.5 .0-alpine AS deps
33
44# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
55RUN apk add --no-cache libc6-compat
@@ -8,7 +8,7 @@ COPY package.json yarn.lock ./
88RUN yarn install --frozen-lockfile
99
1010# Rebuild the source code only when needed
11- FROM node:23.7 .0-alpine AS builder
11+ FROM node:24.5 .0-alpine AS builder
1212
1313ARG NEXT_PUBLIC_CONAN_VERSION
1414ARG NEXT_PUBLIC_CONAN_CONANIO_SERVICE
@@ -17,18 +17,18 @@ WORKDIR /app
1717COPY --from=deps /app/node_modules ./node_modules
1818COPY . .
1919
20- ENV NEXT_TELEMETRY_DISABLED 1
20+ ENV NEXT_TELEMETRY_DISABLED= 1
2121
2222RUN yarn test:ci
2323RUN yarn build . NEXT_PUBLIC_CONAN_VERSION=${NEXT_PUBLIC_CONAN_VERSION} NEXT_PUBLIC_CONAN_CONANIO_SERVICE=${NEXT_PUBLIC_CONAN_CONANIO_SERVICE}
2424
2525# Production image, copy all the files and run next
26- FROM node:23.7 .0-alpine AS runner
26+ FROM node:24.5 .0-alpine AS runner
2727WORKDIR /app
2828
29- ENV NODE_ENV production
29+ ENV NODE_ENV= production
3030# Uncomment the following line in case you want to disable telemetry during runtime.
31- ENV NEXT_TELEMETRY_DISABLED 1
31+ ENV NEXT_TELEMETRY_DISABLED= 1
3232
3333RUN addgroup --system --gid 1001 nodejs
3434RUN adduser --system --uid 1001 nextjs
@@ -47,7 +47,7 @@ USER nextjs
4747
4848EXPOSE 3000
4949
50- ENV PORT 3000
50+ ENV PORT= 3000
5151
5252RUN set
5353
0 commit comments