Skip to content

Commit

Permalink
feat : changed version in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
surajhub255 committed Oct 25, 2024
1 parent c085fec commit 539a68e
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,5 +1,5 @@
# Install dependencies only when needed
FROM node:16-alpine AS deps
FROM node:18-alpine AS deps

# Install libc6-compat if needed
RUN apk add --no-cache libc6-compat
Expand All @@ -16,7 +16,7 @@ COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile

# Rebuild the source code only when needed
FROM node:16-alpine AS builder
FROM node:18-alpine AS builder
WORKDIR /app

# Install pnpm globally
Expand All @@ -33,7 +33,7 @@ COPY . .
RUN pnpm run build

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

# Install pnpm globally
Expand Down

0 comments on commit 539a68e

Please sign in to comment.