Skip to content

Commit

Permalink
> fix image
Browse files Browse the repository at this point in the history
  • Loading branch information
kebe7jun committed Jan 8, 2025
1 parent 6d9ccd2 commit eb4d73f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,11 @@ ENV venv_dir -

RUN useradd -U --home /stable-diffusion-webui sd

RUN sed 's/start()/#start()/g' launch.py && \
sh -c "nohup bash webui.sh -f --skip-torch-cuda-test --no-half >/tmp/sd.log &"; \
RUN sh -c "nohup bash webui.sh -f --exit --skip-torch-cuda-test --no-half >/tmp/sd.log &"; \
start=$(date +%s); \
while true; do \
sleep 3; \
if grep -q "Kebe xx" /tmp/sd.log; then \
if grep -q "Exiting because of --exit argument" /tmp/sd.log; then \
break; \
elif ! ps -ef | grep -q ./webui.sh; then \
cat /tmp/sd.log; \
Expand All @@ -32,8 +31,7 @@ RUN sed 's/start()/#start()/g' launch.py && \
fi; \
done && \
rm -rf /root/.cache /tmp/sd.log && \
chown -R sd:sd /stable-diffusion-webui && \
sed 's/#start()/start()/g' launch.py
chown -R sd:sd /stable-diffusion-webui

EXPOSE 7860

Expand Down

0 comments on commit eb4d73f

Please sign in to comment.