[web] Update Dockerfile
This commit is contained in:
parent
d454b30ca9
commit
7cef57073a
@ -6,7 +6,13 @@ RUN apt-get update
|
|||||||
|
|
||||||
RUN apt-get install curl -y
|
RUN apt-get install curl -y
|
||||||
|
|
||||||
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -y nodejs
|
RUN apt-get install -y ca-certificates curl gnupg
|
||||||
|
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
|
||||||
|
ENV NODE_MAJOR=20
|
||||||
|
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 install nodejs -y
|
||||||
|
|
||||||
RUN apt-get install git -y
|
RUN apt-get install git -y
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user