Skip to content

Commit

Permalink
chore: bump node alpine version from 16 to 20
Browse files Browse the repository at this point in the history
  • Loading branch information
VinneyJ committed Oct 9, 2024
1 parent 7231f75 commit 5125583
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:20-alpine AS deps
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
RUN apk add --no-cache libc6-compat

Expand All @@ -8,7 +8,7 @@ COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile --network-timeout 600000

# Rebuild the source code only when needed
FROM node:16-alpine AS builder
FROM node:20-alpine AS builder
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .
Expand All @@ -24,7 +24,7 @@ ENV TWOOPSTRACKER_API_URL=${TWOOPSTRACKER_API_URL} \
RUN yarn build

# Production image, copy all the files and run next
FROM node:16-alpine AS runner
FROM node:20-alpine AS runner

ENV NODE_ENV production \
NEXT_TELEMETRY_DISABLED=1
Expand Down

0 comments on commit 5125583

Please sign in to comment.