[sandbox] Use node lts
This commit is contained in:
parent
42250f39e1
commit
6f4ff540b6
@ -9,7 +9,7 @@ RUN apt-get install curl -y
|
|||||||
RUN apt-get install -y ca-certificates curl gnupg
|
RUN apt-get install -y ca-certificates curl gnupg
|
||||||
RUN mkdir -p /etc/apt/keyrings
|
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 curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
|
||||||
ENV NODE_MAJOR=20
|
ENV NODE_MAJOR=18
|
||||||
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 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 update
|
||||||
RUN apt-get install nodejs -y
|
RUN apt-get install nodejs -y
|
||||||
|
Loading…
Reference in New Issue
Block a user