Skip to content

Commit

Permalink
Fixed broken nodesource installation
Browse files Browse the repository at this point in the history
  • Loading branch information
craigloewen-msft committed Jan 5, 2024
1 parent 4b7bae2 commit b0b41ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ RUN mkdir -p /etc/apt/keyrings
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg

ENV NODE_MAJOR=18
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
RUN curl -fsSL https://deb.nodesource.com/setup_$NODE_MAJOR.x | bash -
RUN apt-get update && apt-get install nodejs -y
RUN echo "Node: " && node -v
RUN echo "NPM: " && npm -v

WORKDIR /usr/src/app

Expand Down

0 comments on commit b0b41ca

Please sign in to comment.