From 24a1ebe1d18f0a2a5075ca26843c106f106116ad Mon Sep 17 00:00:00 2001 From: Sean Hellum Date: Mon, 9 Mar 2020 13:50:24 +0000 Subject: [PATCH] [full] Update node version to LTS --- full/Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/full/Dockerfile b/full/Dockerfile index 01ebe5946..dcc44bdd0 100644 --- a/full/Dockerfile +++ b/full/Dockerfile @@ -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