Skip to content

Commit

Permalink
Install nodejs v20 in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ghenry committed Sep 4, 2023
1 parent be43f8e commit c60ef70
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ FROM ${BUILDER_IMAGE} as builder
SHELL ["/bin/bash", "-c"]

# install build dependencies
RUN apt-get update -y && apt-get install -y build-essential git npm && \
RUN apt-get update -y && apt-get upgrade -y && \
apt-get install -y build-essential git curl && \
curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
apt install nodejs -y && \
npm install npm@latest -g && \
apt-get clean && rm -f /var/lib/apt/lists/*_*

Expand Down

0 comments on commit c60ef70

Please sign in to comment.