Skip to content

Commit

Permalink
use n
Browse files Browse the repository at this point in the history
  • Loading branch information
krudos committed Nov 22, 2022
1 parent 9038e8f commit 62aef62
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,11 @@ RUN apt update -qq && apt install -qq -y --no-install-recommends \
&& gem install bundler \
&& rm -rf /var/lib/apt/lists/*;

# install nodejs using nvm
RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash \
&& export NVM_DIR="$HOME/.nvm" \
&& [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" \
&& nvm install $NODE_VERSION \
&& nvm alias default $NODE_VERSION \
&& nvm use default \
# install nodejs using n
RUN curl -L https://raw.githubusercontent.com/tj/n/master/bin/n -o n \
&& bash n lts \
&& npm install -g n \
&& n $NODE_VERSION \
&& npm install -g yarn \
&& rm -rf /var/lib/apt/lists/*

Expand Down

0 comments on commit 62aef62

Please sign in to comment.