diff --git a/Dockerfile.linuxcross b/Dockerfile.linuxcross index bc5123fa..6fa272ba 100644 --- a/Dockerfile.linuxcross +++ b/Dockerfile.linuxcross @@ -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