soiz1 commited on
Commit
7f39dd5
·
verified ·
1 Parent(s): de32864

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -8
Dockerfile CHANGED
@@ -8,17 +8,13 @@ RUN apt-get update && apt-get install -y \
8
  # Pythonのデフォルト実行ファイルをpython3に変更
9
  RUN ln -s /usr/bin/python3 /usr/bin/python
10
 
11
- # Hugging Face APIトークンを環境変数として設定
12
- ARG HF_TOKEN
13
- ENV HF_TOKEN=${HF_TOKEN}
14
-
15
  # リポジトリをクローン
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"]
 
 
8
  # Pythonのデフォルト実行ファイルをpython3に変更
9
  RUN ln -s /usr/bin/python3 /usr/bin/python
10
 
 
 
 
 
11
  # リポジトリをクローン
12
+ WORKDIR /app
 
13
 
14
  # app.py をコンテナにコピー
15
+ COPY . .
16
 
17
  # WebUIの起動(app.pyを実行)
18
  WORKDIR /stable-diffusion-webui-forge
19
+ CMD ["python3", "launch.py", "--share", "--disable-torch-cuda"]
20
+ ]