SHA as Build ARG (#30)
This commit is contained in:
parent
ae834cb764
commit
082876aab3
@ -61,12 +61,11 @@ Note: the first start will take sometime as some other models will be downloaded
|
|||||||
|
|
||||||
You can find fixes to common issues [in the wiki page.](https://github.com/AbdBarho/stable-diffusion-webui-docker/wiki/FAQ)
|
You can find fixes to common issues [in the wiki page.](https://github.com/AbdBarho/stable-diffusion-webui-docker/wiki/FAQ)
|
||||||
|
|
||||||
|
|
||||||
## Config
|
## Config
|
||||||
|
|
||||||
in the `docker-compose.yml` you can change the `CLI_ARGS` variable, which contains the arguments that will be passed to the WebUI. By default: `--extra-models-cpu --optimized-turbo` are given, which allow you to use this model on a 6GB GPU. However, some features might not be available in the mode.
|
in the `docker-compose.yml` you can change the `CLI_ARGS` variable, which contains the arguments that will be passed to the WebUI. By default: `--extra-models-cpu --optimized-turbo` are given, which allow you to use this model on a 6GB GPU. However, some features might not be available in the mode. [You can find the full list of arguments here.](https://github.com/hlky/stable-diffusion/blob/bb765f1897c968495ffe12a06b421d97b56d5ae1/scripts/webui.py)
|
||||||
|
|
||||||
[You can find the full list of arguments here.](https://github.com/hlky/stable-diffusion/blob/d667ff52a36b4e79526f01555bfbf85428f334ce/scripts/webui.py)
|
You can set the `WEBUI_SHA` to [any SHA from the main repo](https://github.com/hlky/stable-diffusion/commits/main), this will build the container against that commit. Use at your own risk.
|
||||||
|
|
||||||
# Disclaimer
|
# Disclaimer
|
||||||
|
|
||||||
|
@ -23,7 +23,8 @@ RUN pip install -U --no-cache-dir pyperclip
|
|||||||
|
|
||||||
# Note: don't update the sha of previous versions because the install will take forever
|
# Note: don't update the sha of previous versions because the install will take forever
|
||||||
# instead, update the repo state in a later step
|
# instead, update the repo state in a later step
|
||||||
RUN cd stable-diffusion && git pull && git reset --hard bb765f1897c968495ffe12a06b421d97b56d5ae1 && \
|
ARG WEBUI_SHA=bb765f1897c968495ffe12a06b421d97b56d5ae1
|
||||||
|
RUN cd stable-diffusion && git pull && git reset --hard ${WEBUI_SHA} && \
|
||||||
conda env update --file environment.yaml --name base && conda clean -a -y
|
conda env update --file environment.yaml --name base && conda clean -a -y
|
||||||
|
|
||||||
|
|
||||||
|
@ -2,7 +2,12 @@ version: '3.9'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
model:
|
model:
|
||||||
build: ./build/
|
build:
|
||||||
|
context: ./build/
|
||||||
|
args:
|
||||||
|
# You can choose any commit sha from https://github.com/hlky/stable-diffusion/commits/main
|
||||||
|
# USE AT YOUR OWN RISK! otherwise just leave it empty.
|
||||||
|
WEBUI_SHA:
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
ports:
|
ports:
|
||||||
- "7860:7860"
|
- "7860:7860"
|
||||||
|
Loading…
Reference in New Issue
Block a user