Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Commit 330a485

Browse files
committed
bump node
1 parent 4064c58 commit 330a485

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

containers/codespaces-linux/.devcontainer/base.Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ RUN bash /tmp/scripts/powershell-debian.sh \
8383
&& apt-get clean -y
8484

8585
# Setup Node.js, install NVM and NVS
86-
RUN bash /tmp/scripts/node-debian.sh "${NVM_DIR}" "none" "${USERNAME}" \
86+
RUN bash /tmp/scripts/node-debian.sh "${NVM_DIR}" "lts" "${USERNAME}" \
8787
&& (cd ${NVM_DIR} && git remote get-url origin && echo $(git log -n 1 --pretty=format:%H -- .)) > ${NVM_DIR}/.git-remote-and-commit \
8888
# Install nvs (alternate cross-platform Node.js version-management tool)
8989
&& sudo -u ${USERNAME} git clone -c advice.detachedHead=false --depth 1 https://github.com/jasongin/nvs ${NVS_HOME} 2>&1 \
@@ -126,4 +126,7 @@ USER ${USERNAME}
126126

127127
# Bump npm/node
128128
RUN npm install -g npm@6
129-
RUN nvm install 14.17.6
129+
RUN source $NVM_DIR/nvm.sh \
130+
&& nvm install 14.17.6 \
131+
&& nvm alias default 14.17.6 \
132+
&& nvm use default

0 commit comments

Comments
 (0)