Skip to content

Commit

Permalink
[full] Update node version to LTS
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Hellum authored and jankeromnes committed Mar 23, 2020
1 parent a9f1ad1 commit 24a1ebe
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions full/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -185,17 +185,18 @@ ENV GRADLE_USER_HOME=/workspace/.gradle/
LABEL dazzle/layer=lang-node
LABEL dazzle/test=tests/lang-node.yaml
USER gitpod
ENV NODE_VERSION=10.19.0
RUN curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | PROFILE=/dev/null bash \
ENV NODE_VERSION=12.16.1
RUN curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | PROFILE=/dev/null bash \
&& bash -c ". .nvm/nvm.sh \
&& nvm install $NODE_VERSION \
&& nvm alias default $NODE_VERSION \
&& npm config set python /usr/bin/python --global \
&& npm config set python /usr/bin/python \
&& npm install -g npm typescript yarn" \
&& echo ". ~/.nvm/nvm-lazy.sh" >> /home/gitpod/.bashrc.d/50-node
# above, we are adding the lazy nvm init to .bashrc, because one is executed on interactive shells, the other for non-interactive shells (e.g. plugin-host)
COPY --chown=gitpod:gitpod nvm-lazy.sh /home/gitpod/.nvm/nvm-lazy.sh
ENV PATH=/home/gitpod/.nvm/versions/node/v${NODE_VERSION}/bin:$PATH
ENV PATH=$PATH:/home/gitpod/.nvm/versions/node/v${NODE_VERSION}/bin

### Python ###
LABEL dazzle/layer=lang-python
Expand Down

0 comments on commit 24a1ebe

Please sign in to comment.