File size: 877 Bytes
b63ff60
996f587
 
b63ff60
 
996f587
 
b63ff60
 
 
 
 
 
996f587
 
 
 
 
 
b63ff60
996f587
 
b63ff60
 
996f587
 
b63ff60
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM nvidia/cuda:11.8.0-devel-ubuntu22.04

# Install necessary packages
RUN apt update && apt install git build-essential libopenblas-dev wget python3-pip -y
RUN apt update && apt install -y wget

# Set up the working directory
ARG MODEL_PART_A
ARG MODEL_PART_B
ARG MODEL_NAME
ARG ADDITIONAL
RUN mkdir /opt/kobold
RUN git clone https://github.com/0cc4m/KoboldAI -b latestgptq --recurse-submodules /opt/koboldcpp

# Copy the install_requirements.sh script from your build context into the container
# Make sure the script is in the same directory as your Dockerfile or in the build context
COPY install_requirements.sh /opt/kobold/

# Set the working directory to /opt/kobold
WORKDIR /opt/kobold

# Make the script executable and run it
RUN chmod +x install_requirements.sh
RUN ./install_requirements.sh cuda

# Define the command to run when the container starts
CMD ./play.sh