Files
sammykumar-ComfyUI-SwissArm…/Dockerfile
T
Sam Kumar f30458c038 ✨ (Dockerfile, docker-compose.yml, .gitignore): add ComfyUI-Manager integration to Docker setup and update paths for user settings
🐛 (Dockerfile, utils/nodes.py): fix missing dependencies for ComfyUI-Manager and improve LoRAInfoExtractor to support CivitAI API
📝 (docs): add documentation for Docker ComfyUI-Manager integration and update LoRA metadata extraction details
♻️ (utils/nodes.py): refactor LoRAInfoExtractor to utilize CivitAI API for enhanced metadata extraction
💡 (utils/civitai_service.py): implement CivitAI API service for fetching LoRA metadata and caching results
2025-09-24 12:43:19 -05:00

54 lines
1.5 KiB
Docker

FROM python:3.11-slim
# Prevent interactive prompts during package installation
ENV DEBIAN_FRONTEND=noninteractive
# Install system dependencies
RUN apt-get update && apt-get install -y \
git \
wget \
ffmpeg \
libglib2.0-0 \
libsm6 \
libxext6 \
libxrender-dev \
libgomp1 \
&& rm -rf /var/lib/apt/lists/*
# Create workspace directory
WORKDIR /workspace
# Clone ComfyUI
RUN git clone https://github.com/comfyanonymous/ComfyUI.git
# Set ComfyUI as working directory
WORKDIR /workspace/ComfyUI
# Install PyTorch CPU version first
RUN pip install --no-cache-dir \
torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
# Install ComfyUI dependencies from requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Install additional dependencies needed for ComfyUI-SwissArmyKnife
RUN pip install --no-cache-dir \
google-genai \
opencv-python \
requests
# Create directories for models and custom nodes if they don't exist
RUN mkdir -p models custom_nodes input output
# Install ComfyUI-Manager
RUN cd custom_nodes && \
git clone https://github.com/ltdrdata/ComfyUI-Manager.git comfyui-manager
# Install ComfyUI-Manager dependencies (includes GitPython and other required packages)
RUN pip install --no-cache-dir -r custom_nodes/comfyui-manager/requirements.txt
# Expose ComfyUI port
EXPOSE 8188
# Default command (can be overridden in docker-compose.yml)
CMD ["python", "main.py", "--listen", "0.0.0.0", "--port", "8188", "--cpu"]