File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11# Grab the latest Node base image
2- FROM node:18 .2.0-alpine as builder
2+ FROM node:20 .2.0-alpine as builder
33
44# Set the current working directory inside the container
55WORKDIR /app
Original file line number Diff line number Diff line change 11# pulling official base image
2- FROM node:16.15 .0-alpine
2+ FROM node:20.2 .0-alpine
33
44# Setting working directory
55WORKDIR /app
Original file line number Diff line number Diff line change 11# Install dependencies only when needed
2- FROM node:18 .2.0-alpine AS deps
2+ FROM node:20 .2.0-alpine AS deps
33# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
44RUN apk add --no-cache libc6-compat
55WORKDIR /app
66COPY package.json package-lock.json ./
77RUN npm ci
88
99# Rebuild the source code only when needed
10- FROM node:18 .2.0-alpine AS builder
10+ FROM node:20 .2.0-alpine AS builder
1111WORKDIR /app
1212COPY --from=deps /app/node_modules ./node_modules
1313COPY . .
1414
1515RUN npm run build
1616
1717# Production image, copy all the files and run next
18- FROM node:18 .2.0-alpine AS runner
18+ FROM node:20 .2.0-alpine AS runner
1919WORKDIR /app
2020
2121ENV NODE_ENV production
Original file line number Diff line number Diff line change 11# pulling official base image
2- FROM node:16.15 .0-alpine
2+ FROM node:20.2 .0-alpine
33
44# Setting working directory
55WORKDIR /next
You can’t perform that action at this time.
0 commit comments