Skip to content

Commit

Permalink
Remove extra var, filter out pytorch from requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
chirvo committed May 12, 2023
1 parent dce85b8 commit 5861b29
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions dockerfiles/automatic1111.dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
FROM pytorch2.0_gfx1100:latest

ARG CLONE_REPO=AUTOMATIC1111/stable-diffusion-webui
WORKDIR /srv
RUN echo Cloning $CLONE_REPO && git clone https://github.com/$CLONE_REPO webui
RUN git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui webui
WORKDIR /srv/webui
RUN git config --global --add safe.directory '*' \
&& pip install -r requirements.txt

# Run the app
RUN git config --global --add safe.directory '*'
RUN sh -c "cat requirements.txt | grep -vw torch > /tmp/requirements.txt && mv /tmp/requirements.txt ./requirements.txt"
EXPOSE 7860/tcp
# CMD python3 launch.py --listen
CMD "/bin/bash"
CMD python3 launch.py --listen

0 comments on commit 5861b29

Please sign in to comment.