diff --git a/1.22/base/Dockerfile b/1.22/base/Dockerfile index 3e01aa3..34bb30b 100644 --- a/1.22/base/Dockerfile +++ b/1.22/base/Dockerfile @@ -26,8 +26,8 @@ RUN \ yamllint \ openssh-client \ && git config --system --add safe.directory "*" \ - && curl -s -f -L https://deb.nodesource.com/gpgkey/nodesource.gpg.key -o /etc/apt/trusted.gpg.d/nodesource.asc \ - && echo "deb https://deb.nodesource.com/node_20.x/ bookworm main" > /etc/apt/sources.list.d/nodesource.list \ + && curl -fsSL https://deb.nodesource.com/setup_22.x -o nodesource_setup.sh \ + && bash nodesource_setup.sh \ && apt-get update \ && apt-get install -y --no-install-recommends nodejs \ && yq_file=$(/bin/download.sh ${YQ_URL} ${YQ_SUM}) \ diff --git a/1.23/base/Dockerfile b/1.23/base/Dockerfile index c1f449e..714a41a 100644 --- a/1.23/base/Dockerfile +++ b/1.23/base/Dockerfile @@ -26,8 +26,8 @@ RUN \ yamllint \ openssh-client \ && git config --system --add safe.directory "*" \ - && curl -s -f -L https://deb.nodesource.com/gpgkey/nodesource.gpg.key -o /etc/apt/trusted.gpg.d/nodesource.asc \ - && echo "deb https://deb.nodesource.com/node_20.x/ bookworm main" > /etc/apt/sources.list.d/nodesource.list \ + && curl -fsSL https://deb.nodesource.com/setup_22.x -o nodesource_setup.sh \ + && bash nodesource_setup.sh \ && apt-get update \ && apt-get install -y --no-install-recommends nodejs \ && yq_file=$(/bin/download.sh ${YQ_URL} ${YQ_SUM}) \