Docker update

This commit is contained in:
ebolam
2022-11-10 16:08:31 -05:00
parent 389e61444f
commit dd73ce620f
3 changed files with 2 additions and 8 deletions

View File

@@ -5,7 +5,6 @@ COPY ./install_requirements.sh /opt/koboldai
USER root
RUN apt update && apt install wget aria2 git bzip2 python3 python3-venv -y
RUN ./install_requirements.sh cuda;rm -rf ~/.cache/pip
RUN git clone https://github.com/db0/KoboldAI-Horde-Bridge /opt/koboldai/KoboldAI-Horde/
RUN python3 -m venv /opt/koboldai/KoboldAI-Horde/venv
RUN /opt/koboldai/KoboldAI-Horde/venv/bin/pip install -r /opt/koboldai/KoboldAI-Horde/requirements.txt
ENV PATH=/opt/conda/bin/:$PATH

View File

@@ -6,7 +6,4 @@ ENV override_delete=true
ENV override_rename=true
ENV update=true
COPY . /opt/koboldai
WORKDIR /opt/koboldai/KoboldAI-Horde/
RUN git pull
WORKDIR /opt/koboldai/
CMD ./docker-standalone/docker-helper.sh

View File

@@ -2,9 +2,6 @@
cd /opt/koboldai
if [[ -n update ]];then
git pull
cd KoboldAI-Horde/
git pull
cd ..
fi
#The goal here is to allow any directory in /content to be mapped to the appropriate dir in the koboldai dir
@@ -16,7 +13,8 @@ for FILE in *;do
if [[ -d "/opt/koboldai/$FILE" ]];then
rm -rf /opt/koboldai/$FILE
fi
ln -s /content/$FILE /opt/koboldai/$FILE
#ln -s /content/$FILE /opt/koboldai/$FILE
mount --bind /content/$FILE /opt/koboldai/$FILE
done