From 7c7b5d11b72eb4794f59fc76a2e492453306509f Mon Sep 17 00:00:00 2001 From: Raven Scott Date: Tue, 14 Nov 2023 18:19:39 -0500 Subject: [PATCH] fix nodejs install for HuggingFace --- huggingface-config/Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/huggingface-config/Dockerfile b/huggingface-config/Dockerfile index 52d56cf..0118382 100644 --- a/huggingface-config/Dockerfile +++ b/huggingface-config/Dockerfile @@ -4,7 +4,13 @@ RUN apt update RUN DEBIAN_FRONTEND=noninteractive apt install curl sudo -y -RUN curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - +RUN apt-get install -y ca-certificates curl gnupg +RUN sudo mkdir -p /etc/apt/keyrings +RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg +ENV NODE_MAJOR=18 +RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list +RUN apt-get update +RUN apt-get install nodejs -y RUN DEBIAN_FRONTEND=noninteractive apt install nodejs -y