content: FROM nvcr.io/nvidia/cuda:12.2.2-devel-ubuntu22.04
  
  ARG CMAKE_VERSION=3.28.0
  ARG NUM_JOBS=8
  
  ENV DEBIAN_FRONTEND=noninteractive
  
  COPY . /tmp
  
  sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
  sudo cp /tmp/sources.list /etc/apt/sources.list
  # sudo wget -O /etc/apt/sources.list https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/sources.list
  sudo apt-get update
  
  # Install package dependencies
  RUN apt-get update && apt-get install -y --no-install-recommends \
          build-essential \
          software-properties-common \
          autoconf \
          automake \
          libtool \
          pkg-config \
          ca-certificates \
          locales \
          locales-all \
          wget \
          git && \
      apt-get clean
  
  # System locale
  # Important for UTF-8
  ENV LC_ALL=en_US.UTF-8
  ENV LANG=en_US.UTF-8
  ENV LANGUAGE=en_US.UTF-8
  
  # Install CMake
  RUN cd /tmp && \
      wget https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-linux-x86_64.sh && \
      bash cmake-${CMAKE_VERSION}-linux-x86_64.sh --prefix=/usr/local --exclude-subdir --skip-license
  RUN rm -rf /tmp/*
  
  