carloscar commited on
Commit
b8d8718
1 Parent(s): 00f1fdc

Change workdir to where webui is installed

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -115,7 +115,8 @@ RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co
115
 
116
  # Prepare WebUI environment
117
  COPY config.json ui-config.json /app/
118
- RUN python stable-diffusion-webui/launch.py --exit --skip-torch-cuda-test
 
119
 
120
  # Run app as non-root user
121
  # RUN adduser --disabled-password --gecos '' user
@@ -125,4 +126,4 @@ RUN python stable-diffusion-webui/launch.py --exit --skip-torch-cuda-test
125
 
126
  EXPOSE 7860
127
 
128
- CMD ["python", "stable-diffusion-webui/launch.py", "--force-enable-xformers", "--ui-config-file", "/app/ui-config.json", "--ui-settings-file", "/app/config.json", "--disable-console-progressbars", "--enable-console-prompts", "--cors-allow-origins", "huggingface.co,hf.space", "--no-progressbar-hiding", "--api", "--skip-torch-cuda-test", "--skip-install"]
 
115
 
116
  # Prepare WebUI environment
117
  COPY config.json ui-config.json /app/
118
+ WORKDIR /app/stable-diffusion-webui
119
+ RUN python launch.py --exit --skip-torch-cuda-test
120
 
121
  # Run app as non-root user
122
  # RUN adduser --disabled-password --gecos '' user
 
126
 
127
  EXPOSE 7860
128
 
129
+ CMD ["python", "launch.py", "--force-enable-xformers", "--ui-config-file", "/app/ui-config.json", "--ui-settings-file", "/app/config.json", "--disable-console-progressbars", "--enable-console-prompts", "--cors-allow-origins", "huggingface.co,hf.space", "--no-progressbar-hiding", "--api", "--skip-torch-cuda-test", "--skip-install"]