File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
packages/conventional-commit-lint Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 14
14
15
15
# Use a multi-stage docker build to limit production dependencies.
16
16
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/*
20
23
21
24
# Create and change to the app directory.
22
25
WORKDIR /usr/src/app
@@ -34,7 +37,11 @@ COPY . ./
34
37
35
38
RUN npm run compile
36
39
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/*
38
45
39
46
# Remove unnecessary cross-spawn from npm to resolve CVE-2024-21538
40
47
RUN rm -r /usr/local/lib/node_modules/npm/node_modules/cross-spawn/
You can’t perform that action at this time.
0 commit comments