Skip to content

Commit

Permalink
setup venv in /venv to avoid conflict with volume in /stable-diffusio…
Browse files Browse the repository at this point in the history
…n-webui
  • Loading branch information
emsi committed Jul 1, 2023
1 parent d3567af commit 7a5a192
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \

COPY webui.sh webui.sh

# setup venv in /venv to avoid conflict with volume in /stable-diffusion-webui
RUN echo 'venv_dir=/venv' > webui-user.sh

ENV install_dir=/
RUN ./webui.sh -f can_run_as_root --exit --skip-torch-cuda-test

ENV VIRTUAL_ENV=/stable-diffusion-webui/venv
ENV VIRTUAL_ENV=/venv
ENV PATH="$VIRTUAL_ENV/bin:$PATH"

WORKDIR "/stable-diffusion-webui/"
Expand Down

0 comments on commit 7a5a192

Please sign in to comment.