Dhdb commited on
Commit
b9d4a6d
·
verified ·
1 Parent(s): c2873b7

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM nvidia/cuda:12.2.0-base-ubuntu22.04
2
+ ENV DEBIAN_FRONTEND noninteractive
3
+
4
+ RUN apt-get update -y && \
5
+ apt-get install -y aria2 libgl1 libglib2.0-0 wget git git-lfs python3-pip python-is-python3 && \
6
+ pip install -q torch==2.0.1+cu118 torchvision==0.15.2+cu118 torchaudio==2.0.2+cu118 torchtext==0.15.2 torchdata==0.6.1 --extra-index-url https://download.pytorch.org/whl/cu118 && \
7
+ pip install xformers==0.0.20 triton==2.0.0 packaging==23.1 && \
8
+ adduser --disabled-password --gecos '' user && \
9
+ mkdir /content && \
10
+ chown -R user:user /content
11
+
12
+ WORKDIR /content
13
+ USER user
14
+
15
+ RUN git clone -b v2.6 https://github.com/camenduru/stable-diffusion-webui /content/test && \
16
+ git clone https://github.com/etherealxx/batchlinks-webui /content/test/extensions/batchlinks-webui && \
17
+ sed -i -e 's/ start()/ #start()/g' /content/test/launch.py && \
18
+ cd /content/test && \
19
+ python launch.py --skip-torch-cuda-test && \
20
+ git reset --hard
21
+
22
+ # RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/ckpt/sd15/resolve/main/v1-5-pruned-emaonly.ckpt -d /content/test/models/Stable-diffusion -o v1-5-pruned-emaonly.ckpt
23
+ CMD cd /content/test && python launch.py --xformers --cors-allow-origins=* --api