Skip to content

Instantly share code, notes, and snippets.

@hailiang-wang
Created January 7, 2017 03:44
Show Gist options
  • Save hailiang-wang/2a15a526ac4cd37572d446015947b97d to your computer and use it in GitHub Desktop.
Save hailiang-wang/2a15a526ac4cd37572d446015947b97d to your computer and use it in GitHub Desktop.
Nvidia CUDA Installations Ubuntu
FROM cuda:8.0-runtime
LABEL maintainer "NVIDIA CORPORATION <cudatools@nvidia.com>"
# https://github.com/NVIDIA/nvidia-docker/blob/master/ubuntu-14.04/cuda/8.0/runtime/cudnn5/Dockerfile
RUN apt-get update && apt-get install -y \
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment