content: FROM ubuntu:25.04
  
  RUN apt-get update && apt-get upgrade -y && apt-get install -y \
      build-essential \
      cmake \
      ninja-build \
      meson \
      nasm \
      autoconf \
      automake \
      autopoint \
      autotools-dev \
      libtool \
      texinfo \
      mingw-w64 \
      binutils-mingw-w64 \
      mingw-w64-tools \
      pkg-config \
      libglib2.0-dev \
      unzip \
      p7zip \
      wget \
      git
  
  RUN update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix
  
  RUN wget --retry-connrefused --waitretry=1 \
  	--read-timeout=20 --timeout=15 -t 0 -O jdk.zip \
          https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.6%2B7/OpenJDK21U-jdk_x64_windows_hotspot_21.0.6_7.zip \
      && unzip jdk.zip \
      && mv jdk-21.0.6+7 jdk \
      && rm -rf jdk.zip
  
  RUN mkdir /cuda_download && mkdir /cuda \
      && cd /cuda_download \
      && wget --retry-connrefused --waitretry=1 \
      --read-timeout=20 --timeout=15 -t 0 -O cuda.exe \
      https://developer.download.nvidia.com/compute/cuda/12.5.1/local_installers/cuda_12.5.1_555.85_windows.exe \
      && 7z x cuda.exe \
      && \cp -rf ./cuda_cudart/cudart/* /cuda \
      && \cp -rf ./cuda_nvcc/nvcc/* /cuda \
      && cd / \
      && rm -rf /cuda_download
  
  USER 1000:1000
  WORKDIR build
  
  ENV CUDA_CUSTOM_PATH=/cuda/
  ENV JAVA_HOME=/jdk/
  
  ENTRYPOINT ["./cmake/windows-x86_64-build.sh"]
  