Skip to content

Commit

Permalink
chore(deps): update node.js to v22
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored Jan 1, 2025
1 parent 8a82bde commit 0cbe850
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,13 +1,13 @@
# Install dependencies only when needed
FROM node:20-alpine AS deps
FROM node:22-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
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci --no-audit --legacy-peer-deps

# Rebuild the source code only when needed
FROM node:20-alpine AS builder
FROM node:22-alpine AS builder
RUN apk add --no-cache git

WORKDIR /app
Expand All @@ -24,7 +24,7 @@ RUN git config --global --add safe.directory /app
RUN npm run build

# Production image, copy all the files and run next
FROM node:20-alpine AS runner
FROM node:22-alpine AS runner
RUN apk add --no-cache git
WORKDIR /app

Expand Down

0 comments on commit 0cbe850

Please sign in to comment.