diff --git a/Dockerfile b/Dockerfile index 87e2e522..fec7afe7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # Stage 1: Build the application -# Using node:21-alpine for a lightweight, secure build environment. -FROM node:21-alpine AS builder +# node:22-alpine — Node 22 is the current Active LTS (supported through April 2027). +FROM node:22-alpine AS builder WORKDIR /app # Install dependencies first for better Docker layer caching. @@ -30,7 +30,7 @@ RUN if [ "$BUILD_MODE" = "prod" ] || [ "$BUILD_MODE" = "production" ]; then \ fi # Stage 2: Final runtime image -FROM node:21-alpine AS deploy-node +FROM node:22-alpine AS deploy-node WORKDIR /app # Copy only the built files and necessary scripts from the builder stage.