From a6b4769a5d5c30599e5c000a1c229a316059b58c Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Fri, 22 Dec 2023 21:14:35 +0100 Subject: [PATCH] Switch to supported Nodesource installation method --- .docker/ruby/Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.docker/ruby/Dockerfile b/.docker/ruby/Dockerfile index 5cba21a9..0b652131 100644 --- a/.docker/ruby/Dockerfile +++ b/.docker/ruby/Dockerfile @@ -4,11 +4,17 @@ USER root ARG UID=1000 ARG GID=1000 +ARG NODE_MAJOR=16 RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list -RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - +RUN apt-get update -qq \ + && apt-get install -y ca-certificates curl gnupg \ + && mkdir -p /etc/apt/keyrings \ + && 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 -qq \ && apt-get install -y --no-install-recommends build-essential \