Dockerfile.xpu 1.2 KB

12345678910111213141516171819202122
  1. FROM intel/oneapi-basekit:2024.1.0-devel-ubuntu22.04
  2. RUN wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor | tee /usr/share/keyrings/intel-oneapi-archive-keyring.gpg > /dev/null && \
  3. echo "deb [signed-by=/usr/share/keyrings/intel-oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main " | tee /etc/apt/sources.list.d/oneAPI.list && \
  4. chmod 644 /usr/share/keyrings/intel-oneapi-archive-keyring.gpg && \
  5. rm /etc/apt/sources.list.d/intel-graphics.list && \
  6. wget -O- https://repositories.intel.com/graphics/intel-graphics.key | gpg --dearmor | tee /usr/share/keyrings/intel-graphics.gpg > /dev/null && \
  7. echo "deb [arch=amd64,i386 signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/graphics/ubuntu jammy arc" | tee /etc/apt/sources.list.d/intel.gpu.jammy.list && \
  8. chmod 644 /usr/share/keyrings/intel-graphics.gpg
  9. RUN apt-get update -y \
  10. && apt-get install -y curl libicu70 lsb-release git wget vim numactl python3 python3-pip
  11. COPY ./ /workspace/aphrodite-engine
  12. WORKDIR /workspace/aphrodite-engine
  13. RUN pip install -v -r requirements-xpu.txt
  14. RUN APHRODITE_TARGET_DEVICE=xpu python3 setup.py develop
  15. CMD ["/bin/bash"]