From 06220e3796c52847054f25e47d1653cafa2040a4 Mon Sep 17 00:00:00 2001 From: Jasmin Date: Mon, 30 Sep 2024 23:41:48 +0200 Subject: [PATCH] build: update node docker image --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9d4dedd..adf7f3d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,19 +1,19 @@ # Install dependencies only when needed -FROM node:lts-alpine3.14 AS deps +FROM node:22.9.0-alpine3.20 AS deps RUN apk add --no-cache libc6-compat WORKDIR /app COPY package.json yarn.lock ./ RUN yarn install --frozen-lockfile # Rebuild the source code only when needed -FROM node:lts-alpine3.14 AS builder +FROM node:22.9.0-alpine3.20 AS builder WORKDIR /app COPY . . COPY --from=deps /app/node_modules ./node_modules RUN NEXT_PUBLIC_BASE_API_URL=BASE_API_URL yarn build && yarn install # Production image, copy all the files and run next -FROM node:lts-alpine3.14 AS runner +FROM node:22.9.0-alpine3.20 AS runner WORKDIR /app ENV NODE_ENV production @@ -38,4 +38,4 @@ ENV NEXT_TELEMETRY_DISABLED 1 ENTRYPOINT ["/app/entrypoint.sh"] -CMD ["npm", "run", "start"] \ No newline at end of file +CMD ["npm", "run", "start"]