fix nodejs install for HuggingFace

This commit is contained in:
Raven Scott 2023-11-14 18:19:39 -05:00
parent a5d2530456
commit 7c7b5d11b7

View File

@ -4,7 +4,13 @@ RUN apt update
RUN DEBIAN_FRONTEND=noninteractive apt install curl sudo -y 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 RUN DEBIAN_FRONTEND=noninteractive apt install nodejs -y