Skip to content

Instantly share code, notes, and snippets.

@WizardlyBump17
Last active September 2, 2025 22:50
Show Gist options
  • Select an option

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

Select an option

Save WizardlyBump17/f1dd5d219861779c18cc3dd33f2575a1 to your computer and use it in GitHub Desktop.
The minimal packages needed to use an Intel Arc GPU under a container. The official driver installation is from https://dgpu-docs.intel.com/driver/client/overview.html
FROM docker.io/ubuntu:24.04
RUN apt update
RUN apt upgrade -y
RUN apt install -y software-properties-common
RUN add-apt-repository -y ppa:kobuk-team/intel-graphics
#add libze-intel-gpu1 if you want to run stuff like Ollama and use `export ONEAPI_DEVICE_SELECTOR=level_zero:0`
RUN apt install -y \
libze1 \
intel-opencl-icd \
clinfo
CMD ["bash"]
@WizardlyBump17
Copy link
Author

To add the Intel Arc GPU to the container, add the /dev/dri/ as a device either by --device or the devices list on the docker-compose.yaml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment