Skip to content

Instantly share code, notes, and snippets.

@WizardlyBump17
Created September 4, 2025 21:41
Show Gist options
  • Select an option

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

Select an option

Save WizardlyBump17/bd1d8e1d1ad5918dd8dbf126c87d1e01 to your computer and use it in GitHub Desktop.
The minimal packages needed to use an Intel Arc GPU under a container + Python and pip
#Base image: https://gist.github.com/WizardlyBump17/f1dd5d219861779c18cc3dd33f2575a1
FROM localhost/intel-gpu-driver-minimal
#To change the Python version, use `--build-arg PYTHON_VERSION=<version>` when building
ARG PYTHON_VERSION=3.11
RUN apt update \
&& apt upgrade -y \
&& add-apt-repository -y ppa:deadsnakes/ppa \
&& apt install -y \
wget \
python$PYTHON_VERSION \
&& ln -sT /usr/bin/python$PYTHON_VERSION /usr/bin/python \
&& wget https://bootstrap.pypa.io/get-pip.py -O /tmp/get-pip.py \
&& python /tmp/get-pip.py
CMD ["bash"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment