We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99617c4 commit f212ee7Copy full SHA for f212ee7
Dockerfile
@@ -27,11 +27,10 @@ RUN $APT_UPDATE && $APT_INSTALL \
27
unzip software-properties-common apt-transport-https \
28
openjdk-11-jdk xvfb siege apache2-utils git make nodejs locales tsung libtool libssl-dev libyaml-dev libxml2-dev libxslt-dev
29
30
-# Verify Node.js and npm installation
31
-RUN node -v && npm -v || ($APT_UPDATE && $APT_INSTALL npm)
32
-
33
-# Install cross-spawn@7.0.5 to fix the CVE-2024-21538 issue
34
-RUN npm uninstall -g cross-spawn && npm install -g cross-spawn@7.0.5
+# force npm to use cross-spawn@7.0.5
+RUN npm_root=$(npm root -g) \
+ && cd "$npm_root/npm" \
+ && npm install cross-spawn@7.0.5 --no-save
35
36
# Install .NET sdk
37
# check this page for the links and hash
0 commit comments