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 11# Install dependencies only when needed
2- FROM node:lts-alpine AS deps
2+ FROM node:20-slim 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 curl git
55WORKDIR /app
2020
2121
2222# Rebuild the source code only when needed
23- FROM node:lts-alpine AS builder
23+ FROM node:20-slim AS builder
2424WORKDIR /app
2525COPY --from=deps /app/node_modules ./node_modules
2626COPY . .
@@ -36,7 +36,7 @@ RUN CI=true yarn build
3636# RUN npm run build
3737
3838# Production image, copy all the files and run next
39- FROM node:lts-alpine AS runner
39+ FROM node:20-slim AS runner
4040WORKDIR /app
4141
4242ENV NODE_ENV=production
You can’t perform that action at this time.
0 commit comments