From 39e0345d72f7c8194ada2748d0307f129652e86a Mon Sep 17 00:00:00 2001 From: raviramnani Date: Tue, 30 Jul 2024 16:30:18 +0530 Subject: [PATCH] updated docker file to support node 18 --- buy-now/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/buy-now/Dockerfile b/buy-now/Dockerfile index 59b7ec4685..87b93969e9 100644 --- a/buy-now/Dockerfile +++ b/buy-now/Dockerfile @@ -1,5 +1,5 @@ # Install dependencies only when needed -FROM node:16-alpine AS deps +FROM node:18-alpine AS deps # Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed. RUN apk add --no-cache libc6-compat WORKDIR /app @@ -10,7 +10,7 @@ RUN npm i --legacy-peer-deps # Rebuild the source code only when needed -FROM node:16-alpine AS builder +FROM node:18-alpine AS builder ENV GENERATE_SOURCEMAP false WORKDIR /app @@ -34,7 +34,7 @@ RUN npm run build # RUN npm run build # Production image, copy all the files and run next -FROM node:16-alpine AS runner +FROM node:18-alpine AS runner WORKDIR /app ENV NODE_ENV production