Skip to content

Commit

Permalink
Update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
NayamAmarshe committed Feb 7, 2024
1 parent 5424781 commit 0c1a698
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16-alpine AS deps
FROM node:18-alpine AS deps

RUN apk add --no-cache libc6-compat
WORKDIR /app
Expand All @@ -12,14 +12,14 @@ RUN \
fi


FROM node:16-alpine AS builder
FROM node:18-alpine AS builder
WORKDIR /app
COPY . .
COPY --from=deps /app/node_modules ./node_modules
RUN npm run build

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

ENV NODE_ENV=production
Expand Down

0 comments on commit 0c1a698

Please sign in to comment.