Skip to content

Commit

Permalink
Use new blessed method for installing NodeJS (#8093)
Browse files Browse the repository at this point in the history
The previous installation script has been deprecated and now hangs for a
minute as a penalty for using it.
  • Loading branch information
deivid-rodriguez authored Sep 26, 2023
1 parent c0987e7 commit 0d64ef2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion npm_and_yarn/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ ARG NODEJS_VERSION=18.x
ARG NPM_VERSION=9.6.5

# Install Node and npm
RUN curl -sL https://deb.nodesource.com/setup_$NODEJS_VERSION | bash - \
RUN mkdir -p /etc/apt/keyrings \
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
&& echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODEJS_VERSION nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
nodejs \
Expand Down

0 comments on commit 0d64ef2

Please sign in to comment.