Skip to content

Commit

Permalink
Merge pull request #492 from cloud-gov/chore-set-default-node-v20
Browse files Browse the repository at this point in the history
chore: Install and set default node to v20
  • Loading branch information
apburnes authored Dec 5, 2024
2 parents 00504cf + 4e3caf0 commit 00a8917
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ RUN source /usr/local/rvm/scripts/rvm \
RUN source /usr/local/rvm/scripts/rvm && \
rvm rubygems 3.4.22

# Default to Node 18
ENV NODE_VERSION lts/hydrogen
# Default to Node 20
ENV NODE_VERSION lts/iron
RUN curl https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash \
&& \. "$HOME/.nvm/nvm.sh" \
&& nvm install $NODE_VERSION
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile-exp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ RUN mkdir -p /root/.gnupg \
&& echo 'disable-ipv6' >> /root/.gnupg/dirmngr.conf \
&& echo 'rvm_silence_path_mismatch_check_flag=1' >> /etc/rvmrc \
&& echo 'install: --no-document\nupdate: --no-document' >> /etc/.gemrc

RUN useradd --no-log-init --system --create-home --groups sudo system \
&& echo 'system ALL=(ALL:ALL) NOPASSWD:ALL' >> /etc/sudoers.d/system

Expand Down Expand Up @@ -91,8 +91,8 @@ RUN source /usr/local/rvm/scripts/rvm \
# Make rvm available in non-login bash shells
&& echo 'source /usr/local/rvm/scripts/rvm' >> ~/.bashrc

# Default to Node 18
ENV NODE_VERSION lts/hydrogen
# Default to Node 20
ENV NODE_VERSION lts/iron
RUN curl https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash \
&& \. "$HOME/.nvm/nvm.sh" \
&& nvm install $NODE_VERSION
Expand Down

0 comments on commit 00a8917

Please sign in to comment.