diff --git a/Dockerfile b/Dockerfile index c553287..02a24bb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,12 +7,8 @@ COPY . . ENV TZ=Europe/London RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/tim -RUN wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin -RUN mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600 -RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/3bf863cc.pub -RUN add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/ /" - RUN apt update +RUN apt install -y wget RUN apt install -y git RUN apt install -y libfftw3-dev RUN apt install -y g++ @@ -21,6 +17,13 @@ RUN apt install -y python3-pip RUN apt update RUN apt -y install cuda-11.8 +RUN wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin +RUN mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600 +RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/3bf863cc.pub +RUN add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/ /" +RUN apt update +RUN apt -y install cuda-11.8 + RUN export CXX=$(which g++) RUN export CUDACXX=$(which nvcc) RUN git submodule update --init --recursive