From 9e5f19e878255040a3b61050604b7644222ddf7c Mon Sep 17 00:00:00 2001 From: fruneen Date: Wed, 27 Mar 2024 12:16:07 +0300 Subject: [PATCH] feat: update to node v20 in web dockerfile --- template/apps/web/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/template/apps/web/Dockerfile b/template/apps/web/Dockerfile index a82435eb..a6df408d 100644 --- a/template/apps/web/Dockerfile +++ b/template/apps/web/Dockerfile @@ -1,5 +1,5 @@ # BUILDER - Stage 1 -FROM node:18-alpine AS builder +FROM node:20-alpine AS builder WORKDIR /app # Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed. RUN apk update && apk add --no-cache libc6-compat @@ -8,7 +8,7 @@ COPY . . RUN turbo prune --scope=web --docker # INSTALLER - Stage 2 -FROM node:18-alpine AS installer +FROM node:20-alpine AS installer WORKDIR /app # Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed. RUN apk update && apk add --no-cache libc6-compat @@ -37,7 +37,7 @@ ENV NEXT_PUBLIC_APP_ENV=$APP_ENV RUN pnpm turbo run build --filter=web... # RUNNER - Stage 5 -FROM node:18-alpine AS runner +FROM node:20-alpine AS runner WORKDIR /app # Don't run production as root