Skip to content

Commit dc76f60

Browse files
committed
change docker images
1 parent f1490e9 commit dc76f60

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: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.
44
RUN apk add --no-cache libc6-compat curl git
55
WORKDIR /app
@@ -20,7 +20,7 @@ RUN \
2020

2121

2222
# Rebuild the source code only when needed
23-
FROM node:lts-alpine AS builder
23+
FROM node:20-slim AS builder
2424
WORKDIR /app
2525
COPY --from=deps /app/node_modules ./node_modules
2626
COPY . .
@@ -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
4040
WORKDIR /app
4141

4242
ENV NODE_ENV=production

0 commit comments

Comments
 (0)