Skip to content

Commit b768858

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents c91d649 + fc45719 commit b768858

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Install dependencies only when needed
2-
FROM node:16-alpine AS deps
2+
FROM node:18-alpine AS deps
33
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
44
RUN apk add --no-cache libc6-compat git python3 build-base
55
WORKDIR /app
@@ -15,7 +15,7 @@ RUN \
1515

1616

1717
# Rebuild the source code only when needed
18-
FROM node:16-alpine AS builder
18+
FROM node:18-alpine AS builder
1919
WORKDIR /app
2020
COPY --from=deps /app/node_modules ./node_modules
2121
COPY . .
@@ -31,7 +31,7 @@ RUN yarn build
3131
# RUN npm run build
3232

3333
# Production image, copy all the files and run next
34-
FROM node:16-alpine AS runner
34+
FROM node:18-alpine AS runner
3535
WORKDIR /app
3636

3737
ENV NODE_ENV production

0 commit comments

Comments
 (0)