content: # syntax=docker/dockerfile:1.3
  
  ARG MIN_OS_CONTAINER
  FROM ${MIN_OS_CONTAINER}
  
  SHELL ["/bin/bash", "-o", "pipefail", "-c"]
  
  WORKDIR /tmp
  
  USER root
  
  #
  # Install the essential packages from oneAPI to build pti
  # instead of intel-oneapi-base-toolkit
  #
  RUN echo '[oneAPI]' > /etc/yum.repos.d/oneAPI.repo; \
      echo 'name=Intel® oneAPI repository' >> /etc/yum.repos.d/oneAPI.repo; \
      echo 'baseurl=https://yum.repos.intel.com/oneapi' >> /etc/yum.repos.d/oneAPI.repo; \
      echo 'enabled=1' >> /etc/yum.repos.d/oneAPI.repo; \
      echo 'gpgcheck=1' >> /etc/yum.repos.d/oneAPI.repo; \
      echo 'repo_gpgcheck=1' >> /etc/yum.repos.d/oneAPI.repo; \
      echo 'gpgkey=https://yum.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB' >> /etc/yum.repos.d/oneAPI.repo && \
      dnf install -y intel-dpcpp-cpp-compiler-2025.2 \
                      intel-oneapi-mkl-devel-2025.2 \
                      intel-oneapi-dnnl-devel-2025.2 \
                      intel-oneapi-ccl-devel-2021.16 && \
      dnf clean all
  
  #
  # Setup the appropriate repos for GPU
  # We must use -f to force the Rocky installation of the Rhel driver
  #
  RUN wget https://repositories.intel.com/gpu/rhel/8.10/intel-gpu-rhel-8.10.run && \
    chmod +x intel-gpu-rhel-8.10.run && \
    ./intel-gpu-rhel-8.10.run -f && \
    rm ./intel-gpu-rhel-8.10.run
  
  RUN dnf install -y --setopt=tsflags=nodocs \
    intel-opencl intel-media libmfxgen1 libvpl2 \
    level-zero intel-level-zero-gpu mesa-dri-drivers mesa-vulkan-drivers \
    mesa-vdpau-drivers libdrm mesa-libEGL mesa-libgbm mesa-libGL \
    mesa-libxatracker libvpl-tools \
    intel-igc-core intel-igc-cm \
    libva libva-utils intel-gmmlib libmetee intel-gsc intel-ocloc \
    intel-igc-opencl-devel level-zero-devel intel-gsc-devel libmetee-devel \
    level-zero-devel \
    intel-metrics-discovery \
    intel-metrics-discovery-devel \
    intel-metrics-library \
    intel-metrics-library-devel  && \
    dnf clean all
  
  