Skip to content

Commit

Permalink
fix: node version update from 18 to 20
Browse files Browse the repository at this point in the history
  • Loading branch information
sriramveeraghanta committed Jan 9, 2025
1 parent 3ab959c commit 89603bb
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 13 deletions.
8 changes: 5 additions & 3 deletions admin/Dockerfile.admin
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
FROM node:20-alpine as base

# *****************************************************************************
# STAGE 1: Build the project
# *****************************************************************************
FROM node:18-alpine AS builder
FROM base AS builder
RUN apk add --no-cache libc6-compat
WORKDIR /app

Expand All @@ -13,7 +15,7 @@ RUN turbo prune --scope=admin --docker
# *****************************************************************************
# STAGE 2: Install dependencies & build the project
# *****************************************************************************
FROM node:18-alpine AS installer
FROM base AS installer

RUN apk add --no-cache libc6-compat
WORKDIR /app
Expand Down Expand Up @@ -52,7 +54,7 @@ RUN yarn turbo run build --filter=admin
# *****************************************************************************
# STAGE 3: Copy the project and start it
# *****************************************************************************
FROM node:18-alpine AS runner
FROM base AS runner
WORKDIR /app

COPY --from=installer /app/admin/next.config.js .
Expand Down
2 changes: 1 addition & 1 deletion admin/Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18-alpine
FROM node:20-alpine
RUN apk add --no-cache libc6-compat
# Set working directory
WORKDIR /app
Expand Down
2 changes: 1 addition & 1 deletion live/Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18-alpine
FROM node:20-alpine
RUN apk add --no-cache libc6-compat
# Set working directory
WORKDIR /app
Expand Down
2 changes: 1 addition & 1 deletion space/Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18-alpine
FROM node:20-alpine
RUN apk add --no-cache libc6-compat
# Set working directory
WORKDIR /app
Expand Down
7 changes: 4 additions & 3 deletions space/Dockerfile.space
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
FROM node:20-alpine as base
# *****************************************************************************
# STAGE 1: Build the project
# *****************************************************************************
FROM node:18-alpine AS builder
FROM base AS builder
RUN apk add --no-cache libc6-compat
WORKDIR /app

Expand All @@ -13,7 +14,7 @@ RUN turbo prune --scope=space --docker
# *****************************************************************************
# STAGE 2: Install dependencies & build the project
# *****************************************************************************
FROM node:18-alpine AS installer
FROM base AS installer

RUN apk add --no-cache libc6-compat
WORKDIR /app
Expand Down Expand Up @@ -49,7 +50,7 @@ RUN yarn turbo run build --filter=space
# *****************************************************************************
# STAGE 3: Copy the project and start it
# *****************************************************************************
FROM node:18-alpine AS runner
FROM base AS runner
WORKDIR /app

COPY --from=installer /app/space/next.config.js .
Expand Down
2 changes: 1 addition & 1 deletion web/Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18-alpine
FROM node:20-alpine
RUN apk add --no-cache libc6-compat
# Set working directory
WORKDIR /app
Expand Down
8 changes: 5 additions & 3 deletions web/Dockerfile.web
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
FROM node:20-alpine as base

# *****************************************************************************
# STAGE 1: Build the project
# *****************************************************************************
FROM node:18-alpine AS builder
FROM base AS builder
RUN apk add --no-cache libc6-compat
# Set working directory
WORKDIR /app
Expand All @@ -15,7 +17,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 base AS installer

RUN apk add --no-cache libc6-compat
WORKDIR /app
Expand Down Expand Up @@ -62,7 +64,7 @@ RUN yarn turbo run build --filter=web
# *****************************************************************************
# STAGE 3: Copy the project and start it
# *****************************************************************************
FROM node:18-alpine AS runner
FROM base AS runner
WORKDIR /app

COPY --from=installer /app/web/next.config.js .
Expand Down

0 comments on commit 89603bb

Please sign in to comment.