New Docker process (will integrate with github to keep up to date)

This commit is contained in:
ebolam
2022-11-10 13:39:26 -05:00
parent 7c7b68e4dd
commit 26bf04d865
3 changed files with 42 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
FROM debian
WORKDIR /opt/koboldai
COPY ./environments /opt/koboldai/environments
COPY ./install_requirements.sh /opt/koboldai
USER root
RUN apt update && apt install wget aria2 git bzip2 -y
RUN ./install_requirements.sh cuda
ENV PATH=/opt/conda/bin/:$PATH

View File

@@ -0,0 +1,13 @@
FROM ebolam/koboldai_base
EXPOSE 5000/tcp
ENV remote=true
ENV quiet=true
ENV override_delete=true
ENV override_rename=true
ENV update=true
RUN apt-get install python3 python3-venv -y
RUN python3 -m venv /opt/koboldai/KoboldAI-Horde/venv
COPY ./KoboldAI-Horde/requirements.txt /opt/koboldai/KoboldAI-Horde/
RUN /opt/koboldai/KoboldAI-Horde/venv/bin/pip install -r /opt/koboldai/KoboldAI-Horde/requirements.txt
COPY . /opt/koboldai
CMD ./docker-standalone/docker-helper.sh

View File

@@ -0,0 +1,21 @@
#!/bin/bash
cd /opt/koboldai
if [[ -n update ]];then
git pull
fi
#The goal here is to allow any directory in /content to be mapped to the appropriate dir in the koboldai dir
if [[ ! -d "/content" ]];then
mkdir /content
fi
for FILE in *;do
if [[ -d "/opt/koboldai/$FILE" ]];then
rm -rf /opt/koboldai/$FILE
fi
ln -s /content/$FILE /opt/koboldai/$FILE
done
#Previous parameters are now env vars in the docker container so they can be overwritten as desired
PYTHONUNBUFFERED=1 ./play.sh