TomatoCocotree commited on
Commit
7c4fbf0
1 Parent(s): e2f6a3f

删除docker文件夹

Browse files
Files changed (3) hide show
  1. docker/Dockerfile +0 -35
  2. docker/docker-compose.yml +0 -23
  3. docker/readme.md +0 -10
docker/Dockerfile DELETED
@@ -1,35 +0,0 @@
1
- FROM nvidia/cuda:11.7.1-cudnn8-runtime-ubuntu20.04
2
-
3
- EXPOSE 5100
4
-
5
- ENV PATH="/root/miniconda3/bin:${PATH}"
6
- ARG PATH="/root/miniconda3/bin:${PATH}"
7
-
8
- ENV DEBIAN_FRONTEND noninteractive
9
- RUN apt-get update && apt-get install -y --no-install-recommends \
10
- python3 python3-venv wget build-essential
11
-
12
- RUN wget \
13
- https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
14
- && mkdir /root/.conda \
15
- && bash Miniconda3-latest-Linux-x86_64.sh -b \
16
- && rm -f Miniconda3-latest-Linux-x86_64.sh
17
-
18
- RUN conda --version
19
-
20
- RUN conda init
21
-
22
- RUN conda create -n extras
23
-
24
- RUN /bin/bash -c "source activate extras"
25
-
26
- RUN conda install pytorch torchvision torchaudio pytorch-cuda=11.7 git -c pytorch -c nvidia -c conda-forge
27
-
28
- WORKDIR /sillytavern-extras/
29
- COPY . .
30
-
31
- ARG REQUIREMENTS
32
- RUN pip install -r $REQUIREMENTS
33
-
34
- ARG MODULES
35
- CMD ["python","server.py","--enable-modules=$MODULES"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
docker/docker-compose.yml DELETED
@@ -1,23 +0,0 @@
1
- version: "3"
2
- services:
3
- sillytavern-extras:
4
- runtime: nvidia
5
- image: cohee1207/sillytavern-extras
6
- build:
7
- context: ../
8
- dockerfile: docker/Dockerfile
9
- args:
10
- REQUIREMENTS: requirements.txt
11
- MODULES: caption,summarize,classify
12
- # REQUIREMENTS: requirements-complete.txt
13
- # MODULES: caption,summarize,classify,sd,silero-tts,edge-tts,chromadb
14
- volumes:
15
- #- "./chromadb:/chromadb"
16
- - "./cache:/root/.cache"
17
- - "./api_key.txt:/sillytavern-extras/api_key.txt:rw"
18
- ports:
19
- - "5100:5100"
20
- environment:
21
- - NVIDIA_VISIBLE_DEVICES=all
22
- command: python server.py --enable-modules=caption,summarize,classify
23
- # command: python server.py --enable-modules=caption,summarize,classify,sd,silero-tts,edge-tts,chromadb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
docker/readme.md DELETED
@@ -1,10 +0,0 @@
1
- # Docker Usage
2
-
3
- ## Building the image
4
-
5
- *This is assuming you have docker and docker compose installed and running.*
6
-
7
- 1. Open a terminal and set your current directory to the "docker" directory in your clone of this repo.
8
- 2. Adjust the "docker-compose.yml" file to match your needs. The default selection and the selection with all modules are provided as examples.
9
- 3. Once ready, run the command "docker compose build" to build the "cohee1207/sillytavern-extras" docker image.
10
-