Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions dashboard/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# ==========================================
# Stage 1: Install dependencies
# ==========================================
FROM node:20-alpine AS deps
FROM node:22-alpine AS deps

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Use Node 22 for every dashboard Docker stage

Changing only the deps stage leaves the image building and running under node:20-alpine while reusing node_modules installed by Node 22. Since dashboard/package.json declares engines.node as >=22.0.0, the Docker image produced by the existing dashboard build still runs the app on an unsupported Node version and can break as soon as the app or dependencies rely on Node 22 behavior; update the builder and runner stages to the same Node 22 base image as well.

Useful? React with 👍 / 👎.

WORKDIR /app

# Install dependencies based on the preferred package manager
Expand All @@ -12,7 +12,7 @@ RUN --mount=type=cache,target=/root/.npm \
# ==========================================
# Stage 2: Build the application
# ==========================================
FROM node:20-alpine AS builder
FROM node:22-alpine AS builder
WORKDIR /app

# Copy dependencies from deps stage
Expand All @@ -30,7 +30,7 @@ RUN --mount=type=cache,target=/app/.next/cache \
# ==========================================
# Stage 3: Production runner
# ==========================================
FROM node:20-alpine AS runner
FROM node:22-alpine AS runner
WORKDIR /app

ENV NODE_ENV=production
Expand Down
Loading