Skip to content

Commit f90aa77

Browse files
authored
fix: update convention-commit base image to use latest Debian (#5924)
This is required to patch for CVE-2025-32990
1 parent a84b4d5 commit f90aa77

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

packages/conventional-commit-lint/Dockerfile

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@
1414

1515
# Use a multi-stage docker build to limit production dependencies.
1616

17-
# Use the official lightweight Node.js 14 image.
18-
# https://hub.docker.com/_/node
19-
FROM node:18.20.5-slim AS BUILD
17+
18+
# Use the latest Node.js 18 slim image with patched Debian base.
19+
FROM node:18.20.6-slim AS BUILD
20+
21+
# Upgrade all Debian packages for security.
22+
RUN apt-get update && apt-get upgrade -y && apt-get clean && rm -rf /var/lib/apt/lists/*
2023

2124
# Create and change to the app directory.
2225
WORKDIR /usr/src/app
@@ -34,7 +37,11 @@ COPY . ./
3437

3538
RUN npm run compile
3639

37-
FROM node:18.20.5-slim
40+
41+
FROM node:18.20.6-slim
42+
43+
# Upgrade all Debian packages for security.
44+
RUN apt-get update && apt-get upgrade -y && apt-get clean && rm -rf /var/lib/apt/lists/*
3845

3946
# Remove unnecessary cross-spawn from npm to resolve CVE-2024-21538
4047
RUN rm -r /usr/local/lib/node_modules/npm/node_modules/cross-spawn/

0 commit comments

Comments
 (0)