Skip to content

Commit 5b56edb

Browse files
CVE-2024-21538 fix cross-spawn vulnerability4
1 parent 4dd4f37 commit 5b56edb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ RUN $APT_UPDATE && $APT_INSTALL \
2727
unzip software-properties-common apt-transport-https \
2828
openjdk-11-jdk xvfb siege apache2-utils git make nodejs locales tsung libtool libssl-dev libyaml-dev libxml2-dev libxslt-dev
2929

30+
# Verify Node.js and npm installation
31+
RUN node -v && npm -v || \
32+
($APT_UPDATE && $APT_INSTALL npm)
33+
3034
# Install cross-spawn globally
3135
RUN npm uninstall -g cross-spawn && npm install -g cross-spawn@7.0.5
3236

0 commit comments

Comments
 (0)