gfjiogopdfgdfs
commited on
Update Dockerfile
Browse files- Dockerfile +14 -0
Dockerfile
CHANGED
@@ -1,13 +1,27 @@
|
|
1 |
FROM nvidia/cuda:11.8.0-devel-ubuntu22.04
|
|
|
|
|
2 |
RUN apt update && apt install git build-essential libopenblas-dev wget python3-pip -y
|
3 |
RUN apt update && apt install -y wget
|
|
|
|
|
4 |
ARG MODEL_PART_A
|
5 |
ARG MODEL_PART_B
|
6 |
ARG MODEL_NAME
|
7 |
ARG ADDITIONAL
|
8 |
RUN mkdir /opt/kobold
|
9 |
RUN git clone https://github.com/0cc4m/KoboldAI -b latestgptq --recurse-submodules /opt/koboldcpp
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
WORKDIR /opt/kobold
|
|
|
|
|
11 |
RUN chmod +x install_requirements.sh
|
12 |
RUN ./install_requirements.sh cuda
|
|
|
|
|
13 |
CMD ./play.sh
|
|
|
1 |
FROM nvidia/cuda:11.8.0-devel-ubuntu22.04
|
2 |
+
|
3 |
+
# Install necessary packages
|
4 |
RUN apt update && apt install git build-essential libopenblas-dev wget python3-pip -y
|
5 |
RUN apt update && apt install -y wget
|
6 |
+
|
7 |
+
# Set up the working directory
|
8 |
ARG MODEL_PART_A
|
9 |
ARG MODEL_PART_B
|
10 |
ARG MODEL_NAME
|
11 |
ARG ADDITIONAL
|
12 |
RUN mkdir /opt/kobold
|
13 |
RUN git clone https://github.com/0cc4m/KoboldAI -b latestgptq --recurse-submodules /opt/koboldcpp
|
14 |
+
|
15 |
+
# Copy the install_requirements.sh script from your build context into the container
|
16 |
+
# Make sure the script is in the same directory as your Dockerfile or in the build context
|
17 |
+
COPY install_requirements.sh /opt/kobold/
|
18 |
+
|
19 |
+
# Set the working directory to /opt/kobold
|
20 |
WORKDIR /opt/kobold
|
21 |
+
|
22 |
+
# Make the script executable and run it
|
23 |
RUN chmod +x install_requirements.sh
|
24 |
RUN ./install_requirements.sh cuda
|
25 |
+
|
26 |
+
# Define the command to run when the container starts
|
27 |
CMD ./play.sh
|