gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/images/gpu/cuda-tests/Dockerfile.x86_64 (about) 1 FROM nvidia/cuda:12.3.2-devel-ubuntu22.04 2 3 # From: https://github.com/NVIDIA/cuda-samples/releases 4 # Ideally, pick a release that matches the CUDA version of the image above. 5 ARG CUDA_SAMPLES_VERSION=v12.3 6 7 WORKDIR / 8 COPY *.cu *.h *.sh *.go / 9 ENV PATH=$PATH:/usr/local/nvidia/bin:/bin/nvidia/bin 10 RUN export DEBIAN_FRONTEND=noninteractive; \ 11 apt-get update && \ 12 apt-get install -y \ 13 build-essential \ 14 cmake \ 15 freeglut3 freeglut3-dev \ 16 git \ 17 golang \ 18 imagemagick \ 19 libegl-dev \ 20 libfreeimage3 libfreeimage-dev \ 21 libfreeimageplus3 libfreeimageplus-dev \ 22 libgles2-mesa-dev \ 23 libglfw3 libglfw3-dev \ 24 libglu1-mesa libglu1-mesa-dev \ 25 libxi-dev \ 26 libxmu-dev \ 27 llvm \ 28 mpich \ 29 pkg-config \ 30 x11-xserver-utils \ 31 xdotool \ 32 xvfb \ 33 zlib1g zlib1g-dev \ 34 && \ 35 chmod 555 /*.sh && \ 36 git clone --depth=1 --branch="$CUDA_SAMPLES_VERSION" --single-branch \ 37 https://github.com/NVIDIA/cuda-samples.git /cuda-samples && \ 38 go install \ 39 github.com/TheZoraiz/ascii-image-converter@d05a757c5e02ab23e97b6f6fca4e1fbeb10ab559 && \ 40 mv "$HOME/go/bin/ascii-image-converter" /usr/bin/ && \ 41 go build -o /run_sample /run_sample.go 42 43 # Override entrypoint to nothing, otherwise all invocations will have 44 # a copyright notice printed, which breaks parsing the stdout logs. 45 ENTRYPOINT []