Move horde bridge system requirements to base docker image

This commit is contained in:
ebolam
2022-11-10 13:41:51 -05:00
parent 26bf04d865
commit a281f39903
2 changed files with 4 additions and 5 deletions

View File

@@ -3,6 +3,9 @@ WORKDIR /opt/koboldai
COPY ./environments /opt/koboldai/environments 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 -y RUN apt update && apt install wget aria2 git bzip2 python3 python3-venv -y
RUN ./install_requirements.sh cuda RUN ./install_requirements.sh cuda
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
ENV PATH=/opt/conda/bin/:$PATH ENV PATH=/opt/conda/bin/:$PATH

View File

@@ -5,9 +5,5 @@ ENV quiet=true
ENV override_delete=true ENV override_delete=true
ENV override_rename=true ENV override_rename=true
ENV update=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 COPY . /opt/koboldai
CMD ./docker-standalone/docker-helper.sh CMD ./docker-standalone/docker-helper.sh