Update versions (#121)

- auto:
050a6a798c
  - Now uses python 3.10
  - requires a complete re-install
  - Image is now smaller (5.7GB vs 9.8GB)
- hlky:
fe6e72fde7
- lstein:
31869885d9
  - img2img now works
This commit is contained in:
AbdBarho
2022-10-09 11:39:31 +02:00
committed by GitHub
parent 710280c7ab
commit 5698c49653
4 changed files with 11 additions and 20 deletions

View File

@@ -22,10 +22,7 @@ conda clean -a -y
EOF
# Note: don't update the sha of previous versions because the install will take forever
# instead, update the repo state in a later step
ARG BRANCH=master SHA=1a9c053cb7b6832695771db2555c0adc9b41e95f
# ARG BRANCH=dev SHA=1e7bdfe3f38a6dd37fc230f440ea1b0db0937240
ARG BRANCH=dev SHA=fe6e72fde79214aa848d47afe74487d9855b8643
RUN <<EOF
cd stable-diffusion
git fetch
@@ -35,8 +32,6 @@ conda env update --file environment.yaml -n base
conda clean -a -y
EOF
RUN pip install -U --no-cache-dir pyperclip
# add info
COPY . /docker/
RUN python /docker/info.py /stable-diffusion/frontend/frontend.py && chmod +x /docker/mount.sh
@@ -44,7 +39,7 @@ RUN python /docker/info.py /stable-diffusion/frontend/frontend.py && chmod +x /d
WORKDIR /stable-diffusion
ENV PYTHONPATH="${PYTHONPATH}:${PWD}" CLI_ARGS=""
EXPOSE 7860
# run, -u to not buffer stdout / stderr
CMD /docker/mount.sh && \
python3 -u scripts/webui.py --outdir /output --ckpt /data/StableDiffusion/model.ckpt ${CLI_ARGS}
# sed -i -- 's/8501/7860/g' .streamlit/config.toml && STREAMLIT_SERVER_HEADLESS=true python -u -m streamlit run scripts/webui_streamlit.py --theme.base dark