sonic-868 commited on
Commit
9110ef0
·
1 Parent(s): 057eab1

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +39 -0
Dockerfile ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9
2
+
3
+ RUN DEBIAN_FRONTEND=noninteractive && apt update && apt install tzdata wget git ffmpeg libsm6 libxext6 -y && apt-get clean && useradd -s /bin/bash -m fcb
4
+
5
+ RUN git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git && cd stable-diffusion-webui && git pull && git fetch && git checkout 4afaaf8a020c1df457bcf7250cb1c7f609699fa7 && mkdir /stable-diffusion-webui/models/Lora
6
+
7
+ ADD entrypoint.sh /stable-diffusion-webui
8
+
9
+ ##################################### Add your LoRA models here ###########################################
10
+ ### Add your LoRA models here,
11
+ ### You need to replace the <model_download_link> and <your_model_name>, then add the command to the below
12
+ ### Command example:
13
+ ### RUN wget <model_download_link> -O /stable-diffusion-webui/models/Lora/<your_model_name>
14
+
15
+ ## example 1: https://civitai.com/models/4384
16
+ #RUN wget https://civitai.com/api/download/models/126470 -O /stable-diffusion-webui/models/Lora/majicMIX.safetensors
17
+
18
+ # GhostMix
19
+ RUN wget https://civitai.com/api/download/models/76907 -O /stable-diffusion-webui/models/Lora/ghostmixV20Fp16FmfH.safetensors
20
+
21
+ # Detail Tweaker LoRA
22
+ RUN wget https://civitai.com/api/download/models/62833 -O /stable-diffusion-webui/models/Lora/add_detail.safetensors
23
+
24
+ RUN wget https://civitai.com/api/download/models/55411 -O /stable-diffusion-webui/models/Lora/MarsAttacks.safetensors
25
+
26
+
27
+
28
+
29
+ #######################################################################################################
30
+ RUN chmod 777 -R stable-diffusion-webui && chown -R fcb:fcb stable-diffusion-webui
31
+ USER fcb
32
+
33
+ WORKDIR /stable-diffusion-webui
34
+
35
+ ENV COMMANDLINE_ARGS="--listen --port=9999 --enable-insecure-extension-access --api"
36
+
37
+ EXPOSE 9999
38
+
39
+ ENTRYPOINT ["bash", "entrypoint.sh"]