llama-cpp-python-djs-bot/Dockerfile.gpu

24 lines
674 B
Docker
Raw Permalink Normal View History

2023-05-19 19:32:21 +00:00
FROM nvidia/cuda:12.1.1-devel-ubuntu20.04
ENV DEBIAN_FRONTEND noninteractive
WORKDIR /app
RUN apt update
RUN apt install sudo curl -y
2023-11-14 23:54:17 +00:00
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
2023-05-19 19:32:21 +00:00
COPY package*.json ./
RUN npm install --omit=dev
COPY . .
2023-11-14 23:54:17 +00:00
CMD node llamabot.js