diff --git a/Dockerfile-api b/Dockerfile-api index d522702b752..1b6754a0b88 100644 --- a/Dockerfile-api +++ b/Dockerfile-api @@ -50,6 +50,7 @@ RUN curl -s -L -o /tmp/tini.deb "https://github.com/krallin/tini/releases/downlo # preinstall cp -n ./api/config.sample.js ./api/config.js && \ cp -n ./frontend/express/config.sample.js ./frontend/express/config.js && \ + HOME=/tmp npm install -g npm@11.18.0 && \ HOME=/tmp npm install --unsafe-perm=true --allow-root && \ HOME=/tmp npm install argon2 --build-from-source --unsafe-perm=true --allow-root && \ ./bin/docker/preinstall.sh && \ diff --git a/Dockerfile-centos-api b/Dockerfile-centos-api index 1baed179bd2..51341294bc8 100644 --- a/Dockerfile-centos-api +++ b/Dockerfile-centos-api @@ -53,6 +53,7 @@ RUN curl -s -L -o /tmp/tini.rpm "https://github.com/krallin/tini/releases/downlo # preinstall cp -n ./api/config.sample.js ./api/config.js && \ cp -n ./frontend/express/config.sample.js ./frontend/express/config.js && \ + HOME=/tmp npm install -g npm@11.18.0 && \ HOME=/tmp npm install --unsafe-perm=true --allow-root && \ HOME=/tmp npm install argon2 --build-from-source --unsafe-perm=true --allow-root && \ ./bin/docker/preinstall.sh && \ diff --git a/Dockerfile-centos-frontend b/Dockerfile-centos-frontend index e81e0655d93..156590d6dd5 100644 --- a/Dockerfile-centos-frontend +++ b/Dockerfile-centos-frontend @@ -52,6 +52,7 @@ RUN curl -s -L -o /tmp/tini.rpm "https://github.com/krallin/tini/releases/downlo cp -n ./frontend/express/public/javascripts/countly/countly.config.sample.js ./frontend/express/public/javascripts/countly/countly.config.js && \ cp -n ./frontend/express/config.sample.js ./frontend/express/config.js && \ cp -n ./api/config.sample.js ./api/config.js && \ + HOME=/tmp npm install -g npm@11.18.0 && \ HOME=/tmp npm install --unsafe-perm=true --allow-root && \ HOME=/tmp npm install argon2 --build-from-source --unsafe-perm=true --allow-root && \ ./bin/docker/preinstall.sh && \ diff --git a/Dockerfile-frontend b/Dockerfile-frontend index 7941c072dd3..e29714ddcbc 100644 --- a/Dockerfile-frontend +++ b/Dockerfile-frontend @@ -47,6 +47,7 @@ RUN curl -s -L -o /tmp/tini.deb "https://github.com/krallin/tini/releases/downlo cp -n ./api/config.sample.js ./api/config.js && \ cp -n ./frontend/express/config.sample.js ./frontend/express/config.js && \ cp -n ./frontend/express/public/javascripts/countly/countly.config.sample.js ./frontend/express/public/javascripts/countly/countly.config.js && \ + HOME=/tmp npm install -g npm@11.18.0 && \ HOME=/tmp npm install --unsafe-perm=true --allow-root && \ HOME=/tmp npm install argon2 --build-from-source --unsafe-perm=true --allow-root && \ ./bin/docker/preinstall.sh && \