From 93e1bf7672d1bbee00319abea1ec70e3b0adad1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Valenta?= <git@imaniti.org> Date: Fri, 26 Jan 2024 18:54:24 +0100 Subject: [PATCH] update nodejs install script --- Dockerfile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6cd6a4a3..25d7b21d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,8 +2,15 @@ FROM python:3.11 RUN mkdir /app -RUN curl -fsSL https://deb.nodesource.com/setup_19.x | bash - -RUN apt-get -y install make autoconf automake libtool pkg-config nodejs git python3-pip +# Install NodeJS +ENV NODE_MAJOR=20 +RUN apt-get update +RUN apt-get install -y ca-certificates curl gnupg +RUN mkdir -p /etc/apt/keyrings +RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg +RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_${NODE_MAJOR}.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list +RUN apt-get update +RUN apt-get install -y nodejs RUN rm -rf /var/lib/apt/lists/* WORKDIR /app -- GitLab