Skip to content

Commit

Permalink
feat: update to node v20 in web dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
fruneen committed Mar 27, 2024
1 parent 01ca106 commit 9e5f19e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions template/apps/web/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9e5f19e

Please sign in to comment.