-
-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
23 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,8 +10,10 @@ LABEL maintainer="[email protected]" | |
RUN --mount=type=cache,target=/var/cache/zypp \ | ||
set -eu \ | ||
&& zypper install --no-confirm \ | ||
python311 python311-pip python311-devel \ | ||
python311 python311-pip \ | ||
python311-wheel python311-setuptools python311-numpy \ | ||
python311-devel python311-Cython \ | ||
gcc-c++ cmake \ | ||
shadow git aria2 \ | ||
Mesa-libGL1 libgthread-2_0-0 \ | ||
&& rm /usr/lib64/python3.11/EXTERNALLY-MANAGED | ||
|
@@ -33,6 +35,11 @@ RUN --mount=type=cache,target=/root/.cache/pip \ | |
pip install --break-system-packages \ | ||
-r https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/main/requirements.txt | ||
|
||
# Deps for ComfyUI InstantID | ||
RUN --mount=type=cache,target=/root/.cache/pip \ | ||
pip install --break-system-packages \ | ||
-r https://raw.githubusercontent.com/ZHO-ZHO-ZHO/ComfyUI-InstantID/main/requirements.txt | ||
|
||
# Fix for libs (.so files) | ||
ENV LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/usr/lib64/python3.11/site-packages/torch/lib" | ||
ENV LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/usr/lib/python3.11/site-packages/nvidia/cufft/lib" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,10 +11,13 @@ LABEL maintainer="[email protected]" | |
RUN --mount=type=cache,target=/var/cache/zypp \ | ||
set -eu \ | ||
&& zypper install --no-confirm \ | ||
python311 python311-pip python311-devel \ | ||
python311 python311-pip \ | ||
python311-wheel python311-setuptools python311-numpy \ | ||
python311-devel python311-Cython \ | ||
gcc-c++ cmake \ | ||
shadow git aria2 \ | ||
Mesa-libGL1 | ||
Mesa-libGL1 libgthread-2_0-0 \ | ||
&& rm /usr/lib64/python3.11/EXTERNALLY-MANAGED | ||
|
||
# Install PyTorch nightly | ||
RUN --mount=type=cache,target=/root/.cache/pip \ | ||
|
@@ -23,12 +26,19 @@ RUN --mount=type=cache,target=/root/.cache/pip \ | |
|
||
# Deps for main app | ||
RUN --mount=type=cache,target=/root/.cache/pip \ | ||
pip install --break-system-packages -r https://raw.githubusercontent.com/comfyanonymous/ComfyUI/master/requirements.txt | ||
pip install --break-system-packages \ | ||
-r https://raw.githubusercontent.com/comfyanonymous/ComfyUI/master/requirements.txt | ||
|
||
# Deps for ControlNet Auxiliary Preprocessors | ||
RUN --mount=type=cache,target=/root/.cache/pip \ | ||
pip install --break-system-packages -r https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/main/requirements.txt \ | ||
--extra-index-url https://download.pytorch.org/whl/nightly/rocm5.7 | ||
pip install --break-system-packages \ | ||
-r https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/main/requirements.txt \ | ||
--extra-index-url https://download.pytorch.org/whl/nightly/rocm5.7 | ||
|
||
# Deps for ComfyUI InstantID | ||
RUN --mount=type=cache,target=/root/.cache/pip \ | ||
pip install --break-system-packages \ | ||
-r https://raw.githubusercontent.com/ZHO-ZHO-ZHO/ComfyUI-InstantID/main/requirements.txt | ||
|
||
# Create a low-privilege user. | ||
RUN printf 'CREATE_MAIL_SPOOL=no' > /etc/default/useradd \ | ||
|