forked from pkmital/CADL
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Parag K. Mital
committed
Jun 26, 2017
1 parent
53eed03
commit b55c0ab
Showing
1 changed file
with
2 additions
and
47 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,4 @@ | ||
FROM ubuntu:16.04 | ||
LABEL maintainer "NVIDIA CORPORATION <[email protected]>" | ||
LABEL com.nvidia.volumes.needed="nvidia_driver" | ||
RUN NVIDIA_GPGKEY_SUM=d1be581509378368edeec8c1eb2958702feedf3bc3d17011adbf24efacce4ab5 && \ | ||
NVIDIA_GPGKEY_FPR=ae09fe4bbd223a84b2ccfce3f60f4b3d7fa2af80 && \ | ||
apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub && \ | ||
apt-key adv --export --no-emit-version -a $NVIDIA_GPGKEY_FPR | tail -n +5 > cudasign.pub && \ | ||
echo "$NVIDIA_GPGKEY_SUM cudasign.pub" | sha256sum -c --strict - && rm cudasign.pub && \ | ||
echo "deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64 /" > /etc/apt/sources.list.d/cuda.list | ||
ENV CUDA_VERSION 8.0 | ||
LABEL com.nvidia.cuda.version="8.0" | ||
ENV CUDA_PKG_VERSION 8-0=8.0.44-1 | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
cuda-nvrtc-$CUDA_PKG_VERSION \ | ||
cuda-nvgraph-$CUDA_PKG_VERSION \ | ||
cuda-cusolver-$CUDA_PKG_VERSION \ | ||
cuda-cublas-$CUDA_PKG_VERSION \ | ||
cuda-cufft-$CUDA_PKG_VERSION \ | ||
cuda-curand-$CUDA_PKG_VERSION \ | ||
cuda-cusparse-$CUDA_PKG_VERSION \ | ||
cuda-npp-$CUDA_PKG_VERSION \ | ||
cuda-cudart-$CUDA_PKG_VERSION && \ | ||
ln -s cuda-$CUDA_VERSION /usr/local/cuda && \ | ||
rm -rf /var/lib/apt/lists/* | ||
RUN echo "/usr/local/cuda/lib64" >> /etc/ld.so.conf.d/cuda.conf && \ | ||
ldconfig | ||
RUN echo "/usr/local/nvidia/lib" >> /etc/ld.so.conf.d/nvidia.conf && \ | ||
echo "/usr/local/nvidia/lib64" >> /etc/ld.so.conf.d/nvidia.conf | ||
ENV PATH /usr/local/nvidia/bin:/usr/local/cuda/bin:${PATH} | ||
ENV LD_LIBRARY_PATH /usr/local/nvidia/lib:/usr/local/nvidia/lib64 | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
curl && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
ENV CUDNN_VERSION 5 | ||
LABEL com.nvidia.cudnn.version="5" | ||
|
||
RUN CUDNN_DOWNLOAD_SUM=a87cb2df2e5e7cc0a05e266734e679ee1a2fadad6f06af82a76ed81a23b102c8 && \ | ||
curl -fsSL http://developer.download.nvidia.com/compute/redist/cudnn/v5.1/cudnn-8.0-linux-x64-v5.1.tgz -O && \ | ||
echo "$CUDNN_DOWNLOAD_SUM cudnn-8.0-linux-x64-v5.1.tgz" | sha256sum -c --strict - && \ | ||
tar -xzf cudnn-8.0-linux-x64-v5.1.tgz -C /usr/local --wildcards 'cuda/lib64/libcudnn.so.*' && \ | ||
rm cudnn-8.0-linux-x64-v5.1.tgz && \ | ||
ldconfig && \ | ||
ln -s /usr/local/cuda/lib64/libcudnn.so.5 /usr/local/cuda/lib64/libcudnn.so | ||
|
||
FROM nvidia/cuda:8.0-cudnn5-runtime-ubuntu16.04 | ||
ENV LD_LIBRARY_PATH $LD_LIBRARY_PATH:/usr/local/cuda/lib64 | ||
|
||
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 | ||
|
@@ -66,7 +21,7 @@ RUN apt-get install -y curl grep sed dpkg && \ | |
|
||
ENV PATH /opt/conda/bin:$PATH | ||
|
||
ENV TENSORFLOW_VERSION 1.0.0 | ||
ENV TENSORFLOW_VERSION 1.1.0 | ||
RUN pip install tensorflow-gpu==$TENSORFLOW_VERSION | ||
# RUN conda update conda; conda update --all | ||
|
||
|