diff --git a/Dockerfile.gpu b/Dockerfile.gpu index 824be3c..4700f2e 100644 --- a/Dockerfile.gpu +++ b/Dockerfile.gpu @@ -7,11 +7,17 @@ RUN apt update RUN apt install sudo curl -y -RUN curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - && sudo apt-get install -y nodejs +RUN apt-get install -y ca-certificates curl gnupg +RUN sudo mkdir -p /etc/apt/keyrings +RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo 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" | sudo tee /etc/apt/sources.list.d/nodesource.list +RUN apt-get update +RUN apt-get install nodejs -y COPY package*.json ./ RUN npm install --omit=dev COPY . . -CMD node llamabot.js \ No newline at end of file +CMD node llamabot.js