Created
July 23, 2015 06:23
-
-
Save lushl9301/d0de5d3aba70129ae36a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:14.04 | |
MAINTAINER Traun Leyden <[email protected]> | |
# A docker container with the Nvidia kernel module and CUDA drivers installed | |
ENV CUDA_RUN http://developer.download.nvidia.com/compute/cuda/7_0/Prod/local_installers/cuda_7.0.28_linux.run | |
RUN apt-get update && apt-get install -q -y \ | |
wget \ | |
build-essential | |
RUN cd /opt && \ | |
wget $CUDA_RUN && \ | |
chmod +x *.run && \ | |
mkdir nvidia_installers && \ | |
./cuda_7.0.28_linux.run -extract=`pwd`/nvidia_installers && \ | |
cd nvidia_installers && \ | |
./NVIDIA-Linux-*.run -s -N --no-kernel-module | |
RUN cd /opt/nvidia_installers && \ | |
./cuda-linux64-rel-*.run -noprompt | |
# Ensure the CUDA libs and binaries are in the correct environment variables | |
ENV LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-7.0/lib64 | |
ENV PATH=$PATH:/usr/local/cuda-7.0/bin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment