fix nodejs install for HuggingFace
This commit is contained in:
parent
a5d2530456
commit
7c7b5d11b7
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user