File tree 4 files changed +6
-6
lines changed
4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
# Grab the latest Node base image
2
- FROM node:18 .2.0-alpine as builder
2
+ FROM node:20 .2.0-alpine as builder
3
3
4
4
# Set the current working directory inside the container
5
5
WORKDIR /app
Original file line number Diff line number Diff line change 1
1
# pulling official base image
2
- FROM node:16.15 .0-alpine
2
+ FROM node:20.2 .0-alpine
3
3
4
4
# Setting working directory
5
5
WORKDIR /app
Original file line number Diff line number Diff line change 1
1
# Install dependencies only when needed
2
- FROM node:18 .2.0-alpine AS deps
2
+ FROM node:20 .2.0-alpine AS deps
3
3
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
4
4
RUN apk add --no-cache libc6-compat
5
5
WORKDIR /app
6
6
COPY package.json package-lock.json ./
7
7
RUN npm ci
8
8
9
9
# 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
11
11
WORKDIR /app
12
12
COPY --from=deps /app/node_modules ./node_modules
13
13
COPY . .
14
14
15
15
RUN npm run build
16
16
17
17
# 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
19
19
WORKDIR /app
20
20
21
21
ENV NODE_ENV production
Original file line number Diff line number Diff line change 1
1
# pulling official base image
2
- FROM node:16.15 .0-alpine
2
+ FROM node:20.2 .0-alpine
3
3
4
4
# Setting working directory
5
5
WORKDIR /next
You can’t perform that action at this time.
0 commit comments