File size: 1,770 Bytes
9110ef0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM python:3.9

RUN DEBIAN_FRONTEND=noninteractive && apt update && apt install tzdata wget git ffmpeg libsm6 libxext6 -y && apt-get clean && useradd -s /bin/bash -m  fcb 

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

ADD entrypoint.sh /stable-diffusion-webui

##################################### Add your LoRA models here ###########################################
### Add your LoRA models here, 
### You need to replace the <model_download_link> and <your_model_name>, then add the command to the below
### Command example: 
###                             RUN wget <model_download_link> -O /stable-diffusion-webui/models/Lora/<your_model_name>

## example 1: https://civitai.com/models/4384
#RUN wget https://civitai.com/api/download/models/126470 -O  /stable-diffusion-webui/models/Lora/majicMIX.safetensors

#  GhostMix
RUN wget https://civitai.com/api/download/models/76907 -O /stable-diffusion-webui/models/Lora/ghostmixV20Fp16FmfH.safetensors

# Detail Tweaker LoRA 
RUN wget https://civitai.com/api/download/models/62833 -O /stable-diffusion-webui/models/Lora/add_detail.safetensors

RUN wget https://civitai.com/api/download/models/55411 -O /stable-diffusion-webui/models/Lora/MarsAttacks.safetensors




#######################################################################################################
RUN chmod 777 -R stable-diffusion-webui && chown -R fcb:fcb stable-diffusion-webui
USER fcb

WORKDIR /stable-diffusion-webui

ENV COMMANDLINE_ARGS="--listen --port=9999 --enable-insecure-extension-access --api"

EXPOSE 9999

ENTRYPOINT ["bash", "entrypoint.sh"]