GitPod: Use node version 12.16.3 (#9271)

This commit is contained in:
Vincent D'Onofrio 2020-07-13 19:45:49 +02:00 committed by GitHub
parent 564e1ff49f
commit a348075359
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,9 +5,13 @@ ENV RUBY_VERSION=2.7.1
RUN rm /home/gitpod/.rvmrc && touch /home/gitpod/.rvmrc && echo "rvm_gems_path=/home/gitpod/.rvm" > /home/gitpod/.rvmrc
RUN bash -lc "rvm install ruby-$RUBY_VERSION && rvm use ruby-$RUBY_VERSION --default"
# Install Node
# Install Node and Yarn
ENV NODE_VERSION=12.16.3
RUN bash -lc ". .nvm/nvm.sh && nvm install $NODE_VERSION"
RUN bash -c ". .nvm/nvm.sh && \
nvm install ${NODE_VERSION} && \
nvm alias default ${NODE_VERSION} && \
npm install -g yarn"
ENV PATH=/home/gitpod/.nvm/versions/node/v${NODE_VERSION}/bin:$PATH
# Install Redis.
RUN sudo apt-get update \