Skip to content

Commit

Permalink
fix: nodejs install
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed Feb 2, 2024
1 parent a7aa346 commit c769d69
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Dockerfile.linuxcross
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ WORKDIR /root/pkg-fetch/
ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update
RUN apt-get install -y curl software-properties-common
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
RUN apt-get install -y nodejs
RUN apt-get install -y curl software-properties-common ca-certificates gnupg

# Install Node.js
ENV NODE_MAJOR=18
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list && \
sudo apt-get update && sudo apt-get install nodejs -y

RUN apt-get install -y binutils g++-8 git make patch python3 python3-distutils

Expand Down

0 comments on commit c769d69

Please sign in to comment.