Skip to content

Commit

Permalink
[gitpod] Update Node.js v10 pinning code
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Keromnes <[email protected]>
  • Loading branch information
jankeromnes committed Mar 23, 2020
1 parent cc9453d commit 9d59a4e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .gitpod.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ RUN sudo apt-get update \
&& sudo rm -rf /var/lib/apt/lists/*

# Pin Node.js to v10.
ENV NODE_VERSION="10.19.0"
RUN bash -c ". .nvm/nvm.sh \
&& nvm install 10 \
&& nvm use 10 \
&& nvm alias default 10 \
&& nvm install $NODE_VERSION \
&& nvm use $NODE_VERSION \
&& nvm alias default $NODE_VERSION \
&& npm install -g yarn"
ENV PATH=$HOME/.nvm/versions/node/v${NODE_VERSION}/bin:$PATH

0 comments on commit 9d59a4e

Please sign in to comment.