Skip to content

Instantly share code, notes, and snippets.

@avblink
Created August 4, 2021 10:30
Show Gist options
  • Save avblink/9ca68eb3bd9d890d689bc6d84573a119 to your computer and use it in GitHub Desktop.
Save avblink/9ca68eb3bd9d890d689bc6d84573a119 to your computer and use it in GitHub Desktop.
ENV NVM_DIR="/usr/local/nvm"
ENV NVM_VERSION=v0.38.0
ENV NODE_VERSION 10.16.3
RUN mkdir -p $NVM_DIR
# Install nvm with node and npm
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/${NVM_VERSION}/install.sh | bash \
&& . $NVM_DIR/nvm.sh \
&& nvm install $NODE_VERSION && npm i -g yarn \
&& nvm install 12 && npm i -g yarn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment