Docker update

This commit is contained in:
ebolam
2022-11-10 14:39:51 -05:00
parent a281f39903
commit 79ede572e5
3 changed files with 6 additions and 2 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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