We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6249c2b commit 07ec085Copy full SHA for 07ec085
ci/build/Dockerfile
@@ -50,7 +50,6 @@ RUN apt-get update && \
50
make \
51
libtool \
52
nodejs \
53
- npm \
54
gnupg \
55
zip \
56
bc \
@@ -82,6 +81,13 @@ RUN apt-get update && \
82
81
php${PHP_VERSION}-zip \
83
&& rm -rf /var/lib/apt/lists/*
84
+# Only install npm if node version is less than 20, otherwise it's already installed
85
+RUN if [ "${NODE_VERSION}" -lt 20 ]; then \
86
+ apt-get update \
87
+ && apt-get install -y --no-install-recommends npm \
88
+ && rm -rf /var/lib/apt/lists/*; \
89
+ fi
90
+
91
COPY ./.git /hypernode/.git
92
COPY ./bin /hypernode/bin
93
COPY ./ci /hypernode/ci
0 commit comments