Last active
September 4, 2025 21:45
-
-
Save WizardlyBump17/fb454d45aaa108f94b3ca2f67f7c4b72 to your computer and use it in GitHub Desktop.
ComfyUI + the minimal packages needed to use an Intel Arc GPU under a container + Python 3.11 and pip
This file contains hidden or 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
| #Base image: https://gist.github.com/WizardlyBump17/bd1d8e1d1ad5918dd8dbf126c87d1e01 built with Python 3.11 | |
| FROM localhost/intel-gpu-driver-minimal-python3.11 | |
| RUN apt update \ | |
| && apt upgrade -y \ | |
| && apt install -y \ | |
| git \ | |
| libze-intel-gpu1 \ | |
| libze-dev \ | |
| intel-ocloc | |
| RUN git clone https://github.com/comfyanonymous/ComfyUI.git | |
| WORKDIR ComfyUI | |
| RUN pip install --pre torch torchvision torchaudio --index-url=https://download.pytorch.org/whl/nightly/xpu \ | |
| && pip install -r requirements.txt | |
| CMD ["python", "main.py"] |
This file contains hidden or 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
| services: | |
| comfyui: | |
| image: "localhost/comfyui" | |
| ports: | |
| - "8188:8188" | |
| volumes: #this will create the `comfyui` on the same directory as the docker-compose.yaml. I added this because I want to be able to add models and stuff whenever I want | |
| - "./comfyui/models/:/ComfyUI/models/" | |
| - "./comfyui/output/:/ComfyUI/output/" | |
| - "./comfyui/input/:/ComfyUI/input/" | |
| - "./comfyui/custom_nodes/:/ComfyUI/custom_nodes/" | |
| devices: | |
| - "/dev/dri/" | |
| network_mode: "host" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment