soiz1 commited on
Commit
8facdeb
·
verified ·
1 Parent(s): 8711839

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -20
Dockerfile CHANGED
@@ -16,25 +16,9 @@ ENV HF_TOKEN=${HF_TOKEN}
16
  WORKDIR /
17
  RUN git clone https://github.com/lllyasviel/stable-diffusion-webui-forge.git
18
 
19
- # 必要なモデルをダウンロード
20
- WORKDIR /stable-diffusion-webui-forge/models/text_encoder
21
- RUN wget --header="Authorization: Bearer ${HF_TOKEN}" \
22
- https://huggingface.co/black-forest-labs/FLUX.1-dev/resolve/main/ae.safetensors \
23
- https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/resolve/main/text_encoder/model.fp16.safetensors \
24
- https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/resolve/main/text_encoder/model.safetensors \
25
- https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/clip_l.safetensors
26
 
27
- RUN mkdir -p /stable-diffusion-webui-forge/models/clip/
28
- WORKDIR /stable-diffusion-webui-forge/models/clip/
29
- RUN wget --header="Authorization: Bearer ${HF_TOKEN}" \
30
- "https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/clip_l.safetensors" \
31
- "https://huggingface.co/openai/clip-vit-large-patch14/resolve/main/model.safetensors"
32
-
33
- WORKDIR /stable-diffusion-webui-forge/models/Stable-diffusion
34
- RUN wget --header="Authorization: Bearer ${HF_TOKEN}" \
35
- https://huggingface.co/stabilityai/stable-diffusion-3.5-large/resolve/main/sd3.5_large.safetensors \
36
- https://huggingface.co/lllyasviel/flux1-dev-bnb-nf4/resolve/main/flux1-dev-bnb-nf4-v2.safetensors
37
-
38
- # WebUIの起動(CPUモード)
39
  WORKDIR /stable-diffusion-webui-forge
40
- CMD ["python3", "launch.py", "--share", "--disable-torch-cuda"]
 
16
  WORKDIR /
17
  RUN git clone https://github.com/lllyasviel/stable-diffusion-webui-forge.git
18
 
19
+ # app.py をコンテナにコピー
20
+ COPY app.py /stable-diffusion-webui-forge/app.py
 
 
 
 
 
21
 
22
+ # WebUIの起動(app.pyを実行)
 
 
 
 
 
 
 
 
 
 
 
23
  WORKDIR /stable-diffusion-webui-forge
24
+ CMD ["python3", "app.py"]