Skip to content

Commit 0904e49

Browse files
authored
Merge pull request #7410 from Countly/build-error-fix
pinned npm version to 10
2 parents b68deff + 4a1efdb commit 0904e49

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

Dockerfile-api

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ RUN curl -s -L -o /tmp/tini.deb "https://github.com/krallin/tini/releases/downlo
5555
# preinstall
5656
cp -n ./api/config.sample.js ./api/config.js && \
5757
cp -n ./frontend/express/config.sample.js ./frontend/express/config.js && \
58-
HOME=/tmp npm install -g npm@latest && \
58+
HOME=/tmp npm install -g npm@10 && \
5959
HOME=/tmp npm install --unsafe-perm=true --allow-root && \
6060
HOME=/tmp npm install argon2 --build-from-source --unsafe-perm=true --allow-root && \
6161
./bin/docker/preinstall.sh && \

Dockerfile-centos-api

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ RUN curl -s -L -o /tmp/tini.rpm "https://github.com/krallin/tini/releases/downlo
5858
# preinstall
5959
cp -n ./api/config.sample.js ./api/config.js && \
6060
cp -n ./frontend/express/config.sample.js ./frontend/express/config.js && \
61-
HOME=/tmp npm install -g npm@latest && \
61+
HOME=/tmp npm install -g npm@10 && \
6262
HOME=/tmp npm install --unsafe-perm=true --allow-root && \
6363
HOME=/tmp npm install argon2 --build-from-source --unsafe-perm=true --allow-root && \
6464
./bin/docker/preinstall.sh && \

Dockerfile-centos-frontend

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ RUN curl -s -L -o /tmp/tini.rpm "https://github.com/krallin/tini/releases/downlo
5757
cp -n ./frontend/express/public/javascripts/countly/countly.config.sample.js ./frontend/express/public/javascripts/countly/countly.config.js && \
5858
cp -n ./frontend/express/config.sample.js ./frontend/express/config.js && \
5959
cp -n ./api/config.sample.js ./api/config.js && \
60-
HOME=/tmp npm install -g npm@latest && \
60+
HOME=/tmp npm install -g npm@10 && \
6161
HOME=/tmp npm install --unsafe-perm=true --allow-root && \
6262
HOME=/tmp npm install argon2 --build-from-source --unsafe-perm=true --allow-root && \
6363
./bin/docker/preinstall.sh && \

Dockerfile-frontend

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ RUN curl -s -L -o /tmp/tini.deb "https://github.com/krallin/tini/releases/downlo
5353
cp -n ./api/config.sample.js ./api/config.js && \
5454
cp -n ./frontend/express/config.sample.js ./frontend/express/config.js && \
5555
cp -n ./frontend/express/public/javascripts/countly/countly.config.sample.js ./frontend/express/public/javascripts/countly/countly.config.js && \
56-
HOME=/tmp npm install -g npm@latest && \
56+
HOME=/tmp npm install -g npm@10 && \
5757
HOME=/tmp npm install --unsafe-perm=true --allow-root && \
5858
HOME=/tmp npm install argon2 --build-from-source --unsafe-perm=true --allow-root && \
5959
./bin/docker/preinstall.sh && \

0 commit comments

Comments
 (0)