diff --git a/doc/docker/development/Dockerfile b/doc/docker/development/Dockerfile index 5e2a809db4..24abfd72b7 100644 --- a/doc/docker/development/Dockerfile +++ b/doc/docker/development/Dockerfile @@ -54,7 +54,9 @@ RUN apt-get update \ && echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \ && apt-get update \ # install tools to build EGroupware - && apt-get install -y rsync nodejs npm zip curl sudo cron patch \ + && apt-get install -y rsync nodejs zip curl sudo cron patch \ + # nodejs PPA does NOT exist for ppc64le, therefore we need to install npm separate, as not included in stock nodejs on Ubuntu + && test -f /usr/bin/npm || apt-get install -y npm \ && npm install -g grunt-cli \ && bash -c \ 'EXPECTED_SIGNATURE=$(curl https://composer.github.io/installer.sig); \ diff --git a/doc/docker/fpm/Dockerfile b/doc/docker/fpm/Dockerfile index d0de9ee897..c0998d3269 100644 --- a/doc/docker/fpm/Dockerfile +++ b/doc/docker/fpm/Dockerfile @@ -85,7 +85,9 @@ RUN set -e \ && curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \ && echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \ && apt-get update \ - && apt-get install -y nodejs npm \ + && apt-get install -y nodejs \ + # nodejs PPA does NOT exist for ppc64le, therefore we need to install npm separate, as not included in stock nodejs on Ubuntu + && test -f /usr/bin/npm || apt-get install -y npm \ && npm install -g grunt-cli \ && npm install \ && grunt \