2023-08-15 09:08:06 +02:00
|
|
|
FROM nvidia/cuda:12.2.0-devel-ubuntu20.04
|
2022-09-24 10:46:55 +02:00
|
|
|
|
2023-08-29 18:47:54 +02:00
|
|
|
ENV OS=ubuntu2004
|
|
|
|
ENV cudnn_version=8.9.4.25
|
|
|
|
ENV cuda_version=cuda12.2
|
|
|
|
ENV CMAKE_VER=3.27.4
|
2023-08-15 09:19:32 +02:00
|
|
|
|
2023-08-15 09:35:46 +02:00
|
|
|
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y wget software-properties-common
|
2023-08-15 09:23:18 +02:00
|
|
|
|
2023-08-29 18:47:54 +02:00
|
|
|
RUN wget https://developer.download.nvidia.com/compute/cuda/repos/${OS}/x86_64/cuda-${OS}.pin
|
2023-08-15 09:19:32 +02:00
|
|
|
|
2023-08-29 18:47:54 +02:00
|
|
|
RUN mv cuda-${OS}.pin /etc/apt/preferences.d/cuda-repository-pin-600
|
|
|
|
RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/${OS}/x86_64/7fa2af80.pub
|
|
|
|
RUN add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/${OS}/x86_64/ /"
|
2023-08-15 09:23:18 +02:00
|
|
|
|
2023-08-15 09:19:32 +02:00
|
|
|
|
2023-08-15 16:07:01 +02:00
|
|
|
RUN apt-get update && apt-get upgrade -y && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y openjdk-11-jdk \
|
2023-08-15 09:23:18 +02:00
|
|
|
build-essential checkinstall zlib1g-dev libssl-dev git libpthread-stubs0-dev \
|
2023-08-29 18:47:54 +02:00
|
|
|
libcudnn8=${cudnn_version}-1+${cuda_version} libcudnn8-dev=${cudnn_version}-1+${cuda_version}
|
2023-08-15 09:19:32 +02:00
|
|
|
|
|
|
|
|
|
|
|
#RUN apt-get install libcudnn8-samples=${cudnn_version}-1+${cuda_version}
|
|
|
|
#Build cmake version from source \
|
2022-10-07 15:04:30 +02:00
|
|
|
#RUN wget https://github.com/Kitware/CMake/releases/download/v3.24.2/cmake-3.24.2.tar.gz && \
|
|
|
|
# tar -xvf cmake-3.24.2.tar.gz && cd cmake-3.24.2 && \
|
|
|
|
# ./bootstrap && make && make install
|
2023-08-29 18:47:54 +02:00
|
|
|
RUN wget -nv https://github.com/Kitware/CMake/releases/download/v${CMAKE_VER}/cmake-${CMAKE_VER}-linux-x86_64.sh && \
|
|
|
|
mkdir -p /opt/cmake && sh ./cmake-${CMAKE_VER}-linux-x86_64.sh --skip-license --prefix=/opt/cmake && ln -s /opt/cmake/bin/cmake /usr/bin/cmake && \
|
|
|
|
rm cmake-${CMAKE_VER}-linux-x86_64.sh
|
2023-08-28 10:29:35 +02:00
|
|
|
RUN ln -s /usr/bin/make /usr/bin/gmake
|
2022-10-07 15:04:30 +02:00
|
|
|
|
2022-09-24 16:38:24 +02:00
|
|
|
|
2022-10-11 07:59:22 +02:00
|
|
|
RUN echo "nameserver 8.8.8.8" >> /etc/resolv.conf
|
2023-08-14 15:12:15 +02:00
|
|
|
RUN echo "nameserver 9.9.9.9" >> /etc/resolv.conf
|
2022-10-11 07:59:22 +02:00
|
|
|
|