From 8440fd308f0608531be13fa523b0c6f9427f516c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaspar=20L=C3=B6chte?= Date: Tue, 21 Sep 2021 12:23:33 +0200 Subject: [PATCH] Change: Install nodejs 14 from source --- .docker/testing/Dockerfile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.docker/testing/Dockerfile b/.docker/testing/Dockerfile index d0fbfb4552..d2c22191a6 100644 --- a/.docker/testing/Dockerfile +++ b/.docker/testing/Dockerfile @@ -12,7 +12,7 @@ FROM greenbone/gvm-libs-$VERSION-$COMPILER-build ARG DEBIAN_FRONTEND=noninteractive # Install curl and gnupg to add remote repositories -# Add repository for yarn +# Add repository for yarn & nodejs RUN apt-get update && apt-get install --assume-yes \ curl \ gnupg \ @@ -21,13 +21,19 @@ RUN apt-get update && apt-get install --assume-yes \ https://dl.yarnpkg.com/debian/pubkey.gpg \ | apt-key add - && \ echo "deb http://dl.yarnpkg.com/debian/ stable main" \ - > /etc/apt/sources.list.d/yarn.list + > /etc/apt/sources.list.d/yarn.list \ + && curl --silent --show-error \ + https://deb.nodesource.com/gpgkey/nodesource.gpg.key \ + | apt-key add - && \ + echo "deb https://deb.nodesource.com/node_14.x buster main" \ + > /etc/apt/sources.list.d/nodesource.list # Install node.js and yarn for gsa # Install Debian core dependencies required for building gsad + RUN apt-get update && apt-get install --assume-yes \ - nodejs \ libmicrohttpd-dev \ + nodejs \ yarn \ libxml2-dev \ libxslt1-dev \