diff --git a/docs/Dockerfile b/docs/Dockerfile index 39b9c51be..34f0a2a74 100644 --- a/docs/Dockerfile +++ b/docs/Dockerfile @@ -1,12 +1,20 @@ FROM python:3.9 - WORKDIR /app/ +RUN apt-get update +RUN apt-get install -y ca-certificates curl gnupg + # Install NodeJS # -------------- -RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash - -RUN apt-get install -y build-essential nodejs npm -RUN npm install -g npm@8.5.0 +# Download and import the Nodesource GPG key +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 +#Create deb repository +RUN NODE_MAJOR=20 +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 Update and Install +RUN apt-get update +RUN apt-get install nodejs -y # Install Poetry # --------------