File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM debian:9.2
2
+
3
+ # XXX: CUDA doesn't officially support debian, we just need the driver headers though
4
+ RUN apt-get update && apt-get install -y --no-install-recommends curl ca-certificates gnupg2 && \
5
+ curl -fsSL https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub | apt-key add - && \
6
+ echo "deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64 /" > /etc/apt/sources.list.d/cuda.list && \
7
+ rm -rf /var/lib/apt/lists/*
8
+
9
+ RUN apt-get update && apt-get install -y --no-install-recommends \
10
+ bmake \
11
+ build-essential \
12
+ bzip2 \
13
+ cuda-misc-headers-8-0=8.0.61-1 \
14
+ cuda-nvml-dev-8-0=8.0.61-1 \
15
+ devscripts \
16
+ dh-make \
17
+ fakeroot \
18
+ git \
19
+ libcap-dev \
20
+ libseccomp-dev \
21
+ lintian \
22
+ lsb-release \
23
+ m4 && \
24
+ rm -rf /var/lib/apt/lists/*
25
+
26
+ ARG USERSPEC=0:0
27
+
28
+ WORKDIR /tmp/libnvidia-container
29
+ COPY . .
30
+ RUN chown -R $USERSPEC $PWD
31
+ USER $USERSPEC
32
+
33
+ RUN make distclean && make -j"$(nproc)"
34
+
35
+ ENV DIST_DIR /mnt
36
+ VOLUME $DIST_DIR
37
+ CMD make dist && make deb
You can’t perform that action at this time.
0 commit comments