24 lines
674 B
Docker
24 lines
674 B
Docker
FROM nvidia/cuda:12.1.1-devel-ubuntu20.04
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apt update
|
|
|
|
RUN apt install sudo curl -y
|
|
|
|
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
|