diff --git a/SeaCogs/Dockerfile b/SeaCogs/Dockerfile index 6a2873f..e71ddb5 100644 --- a/SeaCogs/Dockerfile +++ b/SeaCogs/Dockerfile @@ -14,10 +14,12 @@ RUN apt-get install -y \ # Install Nodejs -RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.35.2/install.sh | bash - -RUN export NVM_DIR="$HOME/.nvm" -RUN nvm install 12.16.1 -RUN nvm use 12.16.1 +RUN apt-get install -y ca-certificates curl gnupg \ + mkdir -p /etc/apt/keyrings \ + curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg +RUN export NODE_MAJOR=12 +RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_${NODE_MAJOR}.x focal main" | sudo tee /etc/apt/sources.list.d/nodesource.list > /dev/null +RUN apt-get update && apt-get install -y nodejs # Set up deadsnakes PPA