-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (32 loc) · 913 Bytes
/
Dockerfile
File metadata and controls
39 lines (32 loc) · 913 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM debian:wheezy
MAINTAINER Ozzy Johnson <docker@ozzy.io>
ENV DEBIAN_FRONTEND noninteractive
ENV CUDA_DRIVER 346.35
ENV CUDA_INSTALL http://us.download.nvidia.com/XFree86/Linux-x86_64/${CUDA_DRIVER}/NVIDIA-Linux-x86_64-${CUDA_DRIVER}.run
# Update and install minimal.
RUN \
apt-get update \
--quiet \
&& apt-get install \
--yes \
--no-install-recommends \
--no-install-suggests \
build-essential \
module-init-tools \
wget \
# Clean up packages.
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Install CUDA.
RUN wget \
$CUDA_INSTALL \
-P /tmp \
--no-verbose \
&& chmod +x /tmp/NVIDIA-Linux-x86_64-${CUDA_DRIVER}.run \
&& /tmp/NVIDIA-Linux-x86_64-${CUDA_DRIVER}.run \
-s \
-N \
--no-kernel-module \
&& rm -rf /tmp/*
# Default command.
ENTRYPOINT ["/bin/bash"]