Skip to content

Commit 4dd4f37

Browse files
CVE-2024-21538 fix cross-spawn vulnerability3
1 parent 2ae9936 commit 4dd4f37

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Dockerfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,8 @@ 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-
3430
# Install cross-spawn globally
35-
RUN npm install -g cross-spawn@7.0.5
31+
RUN npm uninstall -g cross-spawn && npm install -g cross-spawn@7.0.5
3632

3733
# Install .NET sdk
3834
# check this page for the links and hash

0 commit comments

Comments
 (0)