-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: update node version to 20 #6363
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# ***************************************************************************** | ||
# STAGE 1: Build the project | ||
# ***************************************************************************** | ||
FROM node:18-alpine AS builder | ||
FROM node:20-alpine AS builder | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ensure consistent Node.js versions across all stages While the builder stage has been updated to Apply this diff to maintain version consistency: # Stage 1
FROM node:20-alpine AS builder
# Stage 2
-FROM node:18-alpine AS installer
+FROM node:20-alpine AS installer
# Stage 3
-FROM node:18-alpine AS runner
+FROM node:20-alpine AS runner
|
||
RUN apk add --no-cache libc6-compat | ||
WORKDIR /app | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ RUN turbo prune --scope=web --docker | |
# STAGE 2: Install dependencies & build the project | ||
# ***************************************************************************** | ||
# Add lockfile and package.json's of isolated subworkspace | ||
FROM node:18-alpine AS installer | ||
FROM node:20-alpine AS installer | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ensure consistent Node.js versions across all stages and update builder stage The Node.js version update is inconsistent:
Apply this diff to maintain version consistency and update all stages: # Stage 1
-FROM node:18-alpine AS builder
+FROM node:20-alpine AS builder
# Stage 2
FROM node:20-alpine AS installer
# Stage 3
-FROM node:18-alpine AS runner
+FROM node:20-alpine AS runner
|
||
|
||
RUN apk add --no-cache libc6-compat | ||
WORKDIR /app | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure consistent Node.js versions across all stages
Similar to space/Dockerfile.space, there's an inconsistency in Node.js versions across stages. The builder stage uses
node:20-alpine
while installer and runner stages usenode:18-alpine
.Apply this diff to maintain version consistency: