soiz1's picture
Update Dockerfile
8facdeb verified
raw
history blame
716 Bytes
FROM ubuntu:22.04
# 必要なパッケージをインストール
RUN apt-get update && apt-get install -y \
git wget python3 python3-pip && \
apt-get clean && rm -rf /var/lib/apt/lists/*
# Pythonのデフォルト実行ファイルをpython3に変更
RUN ln -s /usr/bin/python3 /usr/bin/python
# Hugging Face APIトークンを環境変数として設定
ARG HF_TOKEN
ENV HF_TOKEN=${HF_TOKEN}
# リポジトリをクローン
WORKDIR /
RUN git clone https://github.com/lllyasviel/stable-diffusion-webui-forge.git
# app.py をコンテナにコピー
COPY app.py /stable-diffusion-webui-forge/app.py
# WebUIの起動(app.pyを実行)
WORKDIR /stable-diffusion-webui-forge
CMD ["python3", "app.py"]