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 cb06096 commit 6d9ccd2
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,12 @@ ENV venv_dir -

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

# RUN pip install -r requirements.txt --no-cache-dir && \
# chown -R sd:sd /stable-diffusion-webui

RUN awk '/KEEP_GOING=1/ {flag=1} flag' webui.sh > /tmp/build.sh && \
RUN sed 's/start()/#start()/g' launch.py && \
sh -c "nohup bash webui.sh -f --skip-torch-cuda-test --no-half >/tmp/sd.log &"; \
start=$(date +%s); \
while true; do \
sleep 3; \
if grep -q "python venv already activate" /tmp/sd.log; then \
if grep -q "Kebe xx" /tmp/sd.log; then \
break; \
elif ! ps -ef | grep -q ./webui.sh; then \
cat /tmp/sd.log; \
Expand All @@ -36,7 +33,7 @@ RUN awk '/KEEP_GOING=1/ {flag=1} flag' webui.sh > /tmp/build.sh && \
done && \
rm -rf /root/.cache /tmp/sd.log && \
chown -R sd:sd /stable-diffusion-webui && \
cat /tmp/build.sh >> webui.sh
sed 's/#start()/start()/g' launch.py

EXPOSE 7860

Expand Down

0 comments on commit 6d9ccd2

Please sign in to comment.