diff --git a/Dockerfile b/Dockerfile index 8242627..5569955 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,8 +24,8 @@ ARG GCR_TOOLS_VERSION="0.20.6" # renovate: datasource=github-tags depName=kubernetes/kubernetes extractVersion=^v(?.*)$ ARG KUBECTL_VERSION="1.34.1" -# TODO: Use renovate to extract -ARG NODE_MAJOR_VERSION="20" +# renovate: datasource=docker depName=node +ARG NODE_MAJOR_VERSION="24" # renovate: datasource=github-tags depName=nvm-sh/nvm ARG NVM_VERSION="0.40.3" @@ -77,18 +77,13 @@ RUN apt-get update -y &&\ # Add NodeJS RUN mkdir -p /etc/apt/keyrings &&\ - # Download the new repository's GPG key and save it in the keyring directory - curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg &&\ - # Add the new repository's source list with its GPG key for package verification - echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_${NODE_MAJOR_VERSION}.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list &&\ - apt-get update && apt-get install -y nodejs && npm install -g yarn &&\ - # nx cli - npm add --global nx@latest &&\ - # install changelog cli & json lint - npm install -g conventional-changelog-cli jsonlint &&\ # nvm curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v${NVM_VERSION}/install.sh | bash &&\ - . ~/.nvm/nvm.sh && nvm install v20 && \ + # install changelog cli, yarn & json lint + . ~/.nvm/nvm.sh && nvm install ${NODE_MAJOR_VERSION} && \ + npm install -g conventional-changelog-cli jsonlint yarn &&\ + # nx cli + npm add --global nx@latest &&\ # clean up to slim image apt-get clean autoclean && apt-get autoremove --yes && rm -rf /var/lib/{apt,dpkg,cache,log}/