File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Install dependencies only when needed
2
- FROM node:16 -alpine AS deps
2
+ FROM node:18 -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 git python3 build-base
5
5
WORKDIR /app
15
15
16
16
17
17
# Rebuild the source code only when needed
18
- FROM node:16 -alpine AS builder
18
+ FROM node:18 -alpine AS builder
19
19
WORKDIR /app
20
20
COPY --from=deps /app/node_modules ./node_modules
21
21
COPY . .
@@ -31,7 +31,7 @@ RUN yarn build
31
31
# RUN npm run build
32
32
33
33
# Production image, copy all the files and run next
34
- FROM node:16 -alpine AS runner
34
+ FROM node:18 -alpine AS runner
35
35
WORKDIR /app
36
36
37
37
ENV NODE_ENV production
You can’t perform that action at this time.
0 commit comments