You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: Dockerfile
+3-3
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# Copied from https://github.com/vercel/next.js/tree/canary/examples/with-docker
2
2
3
3
# Install dependencies only when needed
4
-
FROM node:16-alpine AS deps
4
+
FROM node:20-alpine AS deps
5
5
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
6
6
RUN apk add --no-cache libc6-compat
7
7
WORKDIR /app
@@ -17,7 +17,7 @@ RUN \
17
17
18
18
19
19
# Rebuild the source code only when needed
20
-
FROM node:16-alpine AS builder
20
+
FROM node:20-alpine AS builder
21
21
WORKDIR /app
22
22
COPY --from=deps /app/node_modules ./node_modules
23
23
COPY . .
@@ -33,7 +33,7 @@ RUN yarn build
33
33
# RUN npm run build
34
34
35
35
# Production image, copy all the files and run next
0 commit comments