luluhacker commited on
Commit
5b3e090
·
verified ·
1 Parent(s): 32a2025

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -4
Dockerfile CHANGED
@@ -68,10 +68,14 @@ RUN mkdir -p /ComfyUI/custom_nodes/ComfyUI-Manager/.cache && \
68
  # Create a Python virtual environment
69
  RUN python3 -m venv /venv
70
 
71
- # Activate the virtual environment and install Python dependencies
72
- RUN /venv/bin/pip install --upgrade pip && \
73
- /venv/bin/pip install -r /ComfyUI/requirements.txt && \
74
- /venv/bin/pip install GitPython
 
 
 
 
75
 
76
  # Set environment variable for the Python virtual environment
77
  ENV PATH="/venv/bin:$PATH"
 
68
  # Create a Python virtual environment
69
  RUN python3 -m venv /venv
70
 
71
+ # Upgrade pip
72
+ RUN /venv/bin/pip install --upgrade pip
73
+
74
+ # Install Python dependencies from requirements.txt
75
+ RUN /venv/bin/pip install -r /ComfyUI/requirements.txt || { echo 'Requirements installation failed'; exit 1; }
76
+
77
+ # Install non-essential dependencies
78
+ RUN /venv/bin/pip install kornia>=0.7.1 spandrel soundfile || { echo 'Non-essential dependencies installation failed'; exit 1; }
79
 
80
  # Set environment variable for the Python virtual environment
81
  ENV PATH="/venv/bin:$PATH"