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:
@@ -5,7 +5,6 @@ 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;rm -rf ~/.cache/pip
|
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 python3 -m venv /opt/koboldai/KoboldAI-Horde/venv
|
||||||
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,7 +6,4 @@ ENV override_delete=true
|
|||||||
ENV override_rename=true
|
ENV override_rename=true
|
||||||
ENV update=true
|
ENV update=true
|
||||||
COPY . /opt/koboldai
|
COPY . /opt/koboldai
|
||||||
WORKDIR /opt/koboldai/KoboldAI-Horde/
|
|
||||||
RUN git pull
|
|
||||||
WORKDIR /opt/koboldai/
|
|
||||||
CMD ./docker-standalone/docker-helper.sh
|
CMD ./docker-standalone/docker-helper.sh
|
@@ -2,9 +2,6 @@
|
|||||||
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
|
||||||
@@ -16,7 +13,8 @@ for FILE in *;do
|
|||||||
if [[ -d "/opt/koboldai/$FILE" ]];then
|
if [[ -d "/opt/koboldai/$FILE" ]];then
|
||||||
rm -rf /opt/koboldai/$FILE
|
rm -rf /opt/koboldai/$FILE
|
||||||
fi
|
fi
|
||||||
ln -s /content/$FILE /opt/koboldai/$FILE
|
#ln -s /content/$FILE /opt/koboldai/$FILE
|
||||||
|
mount --bind /content/$FILE /opt/koboldai/$FILE
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user