mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Docker update
This commit is contained in:
@@ -4,8 +4,8 @@ COPY ./environments /opt/koboldai/environments
|
|||||||
COPY ./install_requirements.sh /opt/koboldai
|
COPY ./install_requirements.sh /opt/koboldai
|
||||||
USER root
|
USER root
|
||||||
RUN apt update && apt install wget aria2 git bzip2 python3 python3-venv -y
|
RUN apt update && apt install wget aria2 git bzip2 python3 python3-venv -y
|
||||||
RUN ./install_requirements.sh cuda
|
RUN ./install_requirements.sh cuda;rm -rf ~/.cache/pip
|
||||||
RUN python3 -m venv /opt/koboldai/KoboldAI-Horde/venv
|
RUN python3 -m venv /opt/koboldai/KoboldAI-Horde/venv
|
||||||
COPY ./KoboldAI-Horde/requirements.txt /opt/koboldai/KoboldAI-Horde/
|
RUN git clone https://github.com/db0/KoboldAI-Horde-Bridge /opt/koboldai/KoboldAI-Horde/
|
||||||
RUN /opt/koboldai/KoboldAI-Horde/venv/bin/pip install -r /opt/koboldai/KoboldAI-Horde/requirements.txt
|
RUN /opt/koboldai/KoboldAI-Horde/venv/bin/pip install -r /opt/koboldai/KoboldAI-Horde/requirements.txt
|
||||||
ENV PATH=/opt/conda/bin/:$PATH
|
ENV PATH=/opt/conda/bin/:$PATH
|
||||||
|
@@ -6,4 +6,5 @@ ENV override_delete=true
|
|||||||
ENV override_rename=true
|
ENV override_rename=true
|
||||||
ENV update=true
|
ENV update=true
|
||||||
COPY . /opt/koboldai
|
COPY . /opt/koboldai
|
||||||
|
RUN git clone https://github.com/db0/KoboldAI-Horde-Bridge /opt/koboldai/KoboldAI-Horde/
|
||||||
CMD ./docker-standalone/docker-helper.sh
|
CMD ./docker-standalone/docker-helper.sh
|
@@ -2,6 +2,9 @@
|
|||||||
cd /opt/koboldai
|
cd /opt/koboldai
|
||||||
if [[ -n update ]];then
|
if [[ -n update ]];then
|
||||||
git pull
|
git pull
|
||||||
|
cd KoboldAI-Horde/
|
||||||
|
git pull
|
||||||
|
cd ..
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#The goal here is to allow any directory in /content to be mapped to the appropriate dir in the koboldai dir
|
#The goal here is to allow any directory in /content to be mapped to the appropriate dir in the koboldai dir
|
||||||
|
Reference in New Issue
Block a user