Created
September 4, 2025 21:41
-
-
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
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/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