diff --git a/Dockerfile.bionic b/Dockerfile.bionic index 8f76ad955..984043e68 100644 --- a/Dockerfile.bionic +++ b/Dockerfile.bionic @@ -61,6 +61,8 @@ RUN install-tool node 14.16.1 RUN install-tool pnpm 6.0.2 # renovate: datasource=npm RUN install-tool yarn 1.22.10 +# renovate: datasource=npm +RUN install-npm lerna 3.22.1 # renovate: datasource=github-releases lookupName=containerbase/php-prebuild RUN install-tool php 8.0.6 diff --git a/src/usr/local/bin/install-npm b/src/usr/local/bin/install-npm new file mode 100755 index 000000000..dcd92914c --- /dev/null +++ b/src/usr/local/bin/install-npm @@ -0,0 +1,15 @@ +#!/bin/bash + +set -e + +. /usr/local/buildpack/util.sh + +require_root +require_tool "$@" +check_command npm + +echo "Installing npm tool ${TOOL_NAME} v${TOOL_VERSION}" +npm install --global ${TOOL_NAME}@${TOOL_VERSION} + +# Clean download cache +npm cache clean --force diff --git a/test/node/Dockerfile b/test/node/Dockerfile index 215cb70bb..84d577f5d 100644 --- a/test/node/Dockerfile +++ b/test/node/Dockerfile @@ -60,6 +60,9 @@ USER root # renovate: datasource=npm RUN install-tool yarn 1.22.10 +# renovate: datasource=npm +RUN install-npm lerna 3.22.1 + USER 1000 RUN set -ex; \