Skip to content

Commit

Permalink
Dockerfile changes
Browse files Browse the repository at this point in the history
- Removed inclusion of ComfyUI Impact and preprocessors
- Removed update.sh and entrypoint.sh
- Updating now handled by ComfyUI-Manager
  • Loading branch information
cyntachs committed Aug 12, 2023
1 parent 95f93ea commit 9388038
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 66 deletions.
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
VOLUME=./
PORT=9897
17 changes: 11 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
FROM pytorch/pytorch:latest

ENV NVIDIA_VISIBLE_DEVICES=all
ENV CLI_ARGS=""

RUN apt update && apt install git python3-pip libsm6 libxext6 -y && apt clean

RUN mkdir /docker
COPY /install_scripts/ /docker/
RUN chmod u+x /docker/entrypoint.sh
# ADD https://github.com/cyntachs/comfy-webui-docker/blob/main/install_scripts/entrypoint.sh /docker/
# ADD https://github.com/cyntachs/comfy-webui-docker/blob/main/install_scripts/update.sh /docker/

ENV ROOT=/stable-diffusion
RUN mkdir ${ROOT}
RUN git clone https://github.com/comfyanonymous/ComfyUI.git ${ROOT} && \
cd ${ROOT} && \
pip install -r requirements.txt

ENV NVIDIA_VISIBLE_DEVICES=all
ENV PYTHONPATH="${PYTHONPATH}:${PWD}" CLI_ARGS=""
RUN cd ${ROOT}/custom_nodes && \
git clone https://github.com/ltdrdata/ComfyUI-Manager.git

WORKDIR ${ROOT}
EXPOSE 5555
ENTRYPOINT [ "/docker/entrypoint.sh" ]
CMD python -u main.py --listen --port 5555 ${CLI_ARGS}
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ services:
ports:
- ${PORT}:5555
volumes:
- ${COMFY_VOLUME}:/stable-diffusion
- ${VOLUME}:/stable-diffusion
environment:
- CLI_ARGS=
deploy:
resources:
reservations:
devices:
- driver: nvidia
device_ids: ['0']
count: all
capabilities: [compute, utility]
36 changes: 0 additions & 36 deletions install_scripts/entrypoint.sh

This file was deleted.

22 changes: 0 additions & 22 deletions install_scripts/update.sh

This file was deleted.

0 comments on commit 9388038

Please sign in to comment.