Skip to content

Commit 0f24f25

Browse files
[feat] update node.js image tag to LTS
1 parent 13b6bf1 commit 0f24f25

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

content/guides/angular/containerize.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ For consistency, please use the same responses shown in the example below when p
7777
| Question | Answer |
7878
|------------------------------------------------------------|-----------------|
7979
| What application platform does your project use? | Node |
80-
| What version of Node do you want to use? | 24.11.1-alpine |
80+
| What version of Node do you want to use? | 24.12.0-alpine |
8181
| Which package manager do you want to use? | npm |
8282
| Do you want to run "npm run build" before starting server? | yes |
8383
| What directory is your build output to? | dist |
@@ -153,7 +153,7 @@ FROM dhi.io/node:24-alpine3.22-dev AS builder
153153
WORKDIR /app
154154

155155
# Copy package-related files first to leverage Docker's caching mechanism
156-
COPY package.json package-lock.json ./
156+
COPY package.json package-lock.json* ./
157157

158158
# Install project dependencies using npm ci (ensures a clean, reproducible install)
159159
RUN --mount=type=cache,target=/root/.npm npm ci
@@ -197,7 +197,7 @@ Now you need to create a production-ready multi-stage Dockerfile. Replace the ge
197197
# =========================================
198198
# Stage 1: Build the Angular Application
199199
# =========================================
200-
ARG NODE_VERSION=24.11.1-alpine
200+
ARG NODE_VERSION=24.12.0-alpine
201201
ARG NGINX_VERSION=alpine3.22
202202

203203
# Use a lightweight Node.js image for building (customizable via ARG)
@@ -207,7 +207,7 @@ FROM node:${NODE_VERSION} AS builder
207207
WORKDIR /app
208208

209209
# Copy package-related files first to leverage Docker's caching mechanism
210-
COPY package.json package-lock.json ./
210+
COPY package.json *package-lock.json* ./
211211

212212
# Install project dependencies using npm ci (ensures a clean, reproducible install)
213213
RUN --mount=type=cache,target=/root/.npm npm ci

content/guides/angular/develop.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Create a file named `Dockerfile.dev` in your project root with the following con
3838
# =========================================
3939

4040
# Define the Node.js version to use (Alpine for a small footprint)
41-
ARG NODE_VERSION=24.11.1-alpine
41+
ARG NODE_VERSION=24.12.0-alpine
4242

4343
# Set the base image for development
4444
FROM node:${NODE_VERSION} AS dev
@@ -50,7 +50,7 @@ ENV NODE_ENV=development
5050
WORKDIR /app
5151

5252
# Copy only the dependency files first to optimize Docker caching
53-
COPY package.json package-lock.json ./
53+
COPY package.json package-lock.json* ./
5454

5555
# Install dependencies using npm with caching to speed up subsequent builds
5656
RUN --mount=type=cache,target=/root/.npm npm install

0 commit comments

Comments
 (0)