diff --git a/dev/docker/ci/ubuntu-llvm.dockerfile b/dev/docker/ci/ubuntu-llvm.dockerfile index 93cdb633..21c97f85 100644 --- a/dev/docker/ci/ubuntu-llvm.dockerfile +++ b/dev/docker/ci/ubuntu-llvm.dockerfile @@ -3,9 +3,14 @@ FROM ubuntu:22.04 AS setup-cpp-ubuntu COPY "./dist/legacy" "/usr/lib/setup-cpp/" +# install latest nodejs RUN apt-get update -qq && \ -# install nodejs - apt-get install -y --no-install-recommends nodejs npm && \ + apt-get install -y --no-install-recommends curl gnupg ca-certificates && \ + mkdir -p /etc/apt/keyrings && \ + 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 -qq && \ + apt-get install -y --no-install-recommends nodejs && \ # install the compiler and tools node /usr/lib/setup-cpp/setup-cpp.js \ --nala true \ diff --git a/dev/docker/ci/ubuntu-mingw.dockerfile b/dev/docker/ci/ubuntu-mingw.dockerfile index d4920e0c..ab9e16ab 100644 --- a/dev/docker/ci/ubuntu-mingw.dockerfile +++ b/dev/docker/ci/ubuntu-mingw.dockerfile @@ -3,9 +3,14 @@ FROM ubuntu:22.04 AS setup-cpp-ubuntu-mingw COPY "./dist/legacy" "/usr/lib/setup-cpp/" +# install latest nodejs RUN apt-get update -qq && \ -# install nodejs - apt-get install -y --no-install-recommends nodejs npm && \ + apt-get install -y --no-install-recommends curl gnupg ca-certificates && \ + mkdir -p /etc/apt/keyrings && \ + 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 -qq && \ + apt-get install -y --no-install-recommends nodejs && \ # install the compiler and tools node /usr/lib/setup-cpp/setup-cpp.js \ --nala true \ diff --git a/dev/docker/setup-cpp/setup-cpp-ubuntu-llvm.dockerfile b/dev/docker/setup-cpp/setup-cpp-ubuntu-llvm.dockerfile index d8de7360..1653e0f8 100644 --- a/dev/docker/setup-cpp/setup-cpp-ubuntu-llvm.dockerfile +++ b/dev/docker/setup-cpp/setup-cpp-ubuntu-llvm.dockerfile @@ -1,9 +1,14 @@ #### Base Image FROM ubuntu:22.04 AS setup-cpp-ubuntu +# install latest nodejs RUN apt-get update -qq && \ -# install nodejs - apt-get install -y --no-install-recommends nodejs npm && \ + apt-get install -y --no-install-recommends curl gnupg ca-certificates && \ + mkdir -p /etc/apt/keyrings && \ + 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 -qq && \ + apt-get install -y --no-install-recommends nodejs && \ # install setup-cpp npm install -g setup-cpp@v0.46.2 && \ # install the compiler and tools diff --git a/dev/docker/setup-cpp/setup-cpp-ubuntu-mingw.dockerfile b/dev/docker/setup-cpp/setup-cpp-ubuntu-mingw.dockerfile index 62acc445..0a221cde 100644 --- a/dev/docker/setup-cpp/setup-cpp-ubuntu-mingw.dockerfile +++ b/dev/docker/setup-cpp/setup-cpp-ubuntu-mingw.dockerfile @@ -1,9 +1,14 @@ #### Base Image FROM ubuntu:22.04 AS setup-cpp-ubuntu-mingw +# install latest nodejs RUN apt-get update -qq && \ -# install nodejs - apt-get install -y --no-install-recommends nodejs npm && \ + apt-get install -y --no-install-recommends curl gnupg ca-certificates && \ + mkdir -p /etc/apt/keyrings && \ + 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 -qq && \ + apt-get install -y --no-install-recommends nodejs && \ # install setup-cpp npm install -g setup-cpp@v0.46.2 && \ # install the compiler and tools