@@ -24,32 +24,30 @@ git reset --hard db6db585eb9ee48e7315e28603e18531dbc87067
2424pip install -U --prefer-binary --no-cache-dir -r requirements.txt
2525EOF
2626
27+ ENV ROOT=/workspace/stable-diffusion-webui \
28+ WORKDIR=/workspace/stable-diffusion-webui/repositories/stable-diffusion
29+
30+ COPY --from=download /git/ ${ROOT}
31+ RUN pip install --prefer-binary -U --no-cache-dir -r ${ROOT}/repositories/CodeFormer/requirements.txt
32+
2733# Note: don't update the sha of previous versions because the install will take forever
2834# instead, update the repo state in a later step
29- ARG SHA=e92d4cf7476f1897fce376916dfb40755ea7920f
35+ ARG SHA=701f76b29ab8fa9c1d35ae8abce36b99e12d5d08
3036RUN <<EOF
3137cd stable-diffusion-webui
3238git pull
3339git reset --hard ${SHA}
34- pip install -U - -prefer-binary --no-cache-dir -r requirements.txt
40+ pip install --prefer-binary --no-cache-dir -r requirements.txt
3541EOF
3642
37- ENV ROOT=/workspace/stable-diffusion-webui \
38- WORKDIR=/workspace/stable-diffusion-webui/repositories/stable-diffusion
39-
40- COPY --from=download /git/ ${ROOT}
41- RUN <<EOF
42- pip install --prefer-binary -U --no-cache-dir -r ${ROOT}/repositories/CodeFormer/requirements.txt
43- pip install --prefer-binary -U --no-cache-dir opencv-python-headless markupsafe==2.0.1
44- EOF
43+ RUN pip install --prefer-binary -U --no-cache-dir opencv-python-headless markupsafe==2.0.1
4544
4645ENV TRANSFORMERS_CACHE=/cache/transformers TORCH_HOME=/cache/torch CLI_ARGS=""
4746
48-
4947COPY . /docker
5048RUN chmod +x /docker/mount.sh && python3 /docker/info.py ${ROOT}/modules/ui.py
5149
5250WORKDIR ${WORKDIR}
5351EXPOSE 7860
5452# run, -u to not buffer stdout / stderr
55- CMD /docker/mount.sh && python3 -u ../../webui.py --listen ${CLI_ARGS}
53+ CMD /docker/mount.sh && python3 -u ../../webui.py --listen --port 7860 ${CLI_ARGS}
0 commit comments