Skip to content

Instantly share code, notes, and snippets.

@WizardlyBump17
Last active September 4, 2025 21:45
Show Gist options
  • Select an option

  • Save WizardlyBump17/fb454d45aaa108f94b3ca2f67f7c4b72 to your computer and use it in GitHub Desktop.

Select an option

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
#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"]
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