From a4c38839742ae1e4a7f6f89a97657a7b7ca2e5ea Mon Sep 17 00:00:00 2001 From: Nate White Date: Wed, 12 Nov 2025 17:17:58 +0000 Subject: [PATCH] Remove nodesource nodejs sources for Bookworm arm container Debian Bookworm already has a nodejs that is newer than the nodesource.com version 14 that the Dockerfile is currently installing. Bookworm has nodejs 18. Because of this, we run the script (curl | bash) from nodesource.com for nodejs 14 which makes the process wait for 80 seconds because the script is deprecated. Then when we actually install nodejs, we get the version from Bookworm's repositories instead of nodesource.com anyway. This makes the process of using nodesource.com wasteful and pointless. The easy fix is to just remove this line where we add the nodesource repo. --- sonic-slave-bookworm/Dockerfile.j2 | 1 - 1 file changed, 1 deletion(-) diff --git a/sonic-slave-bookworm/Dockerfile.j2 b/sonic-slave-bookworm/Dockerfile.j2 index a45a6c733d2d..e9299216369f 100644 --- a/sonic-slave-bookworm/Dockerfile.j2 +++ b/sonic-slave-bookworm/Dockerfile.j2 @@ -666,7 +666,6 @@ RUN pip3 install git+https://github.com/aristanetworks/swi-tools.git@bead66bf261 {% if CONFIGURED_ARCH != "amd64" -%} # Install node.js for azure pipeline -RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - RUN eatmydata apt-get install -y nodejs {%- if CROSS_BUILD_ENVIRON == "y" %}