forked from dusty-nv/jetson-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (27 loc) · 803 Bytes
/
Dockerfile
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
#---
# name: cudnn
# group: cuda
# depends: cuda
# config: config.py
# test: test.sh
#---
ARG BASE_IMAGE
FROM ${BASE_IMAGE}
ARG CUDNN_URL
ARG CUDNN_DEB
ARG CUDNN_PACKAGES
RUN echo "Downloading ${CUDNN_DEB}" && \
mkdir /tmp/cudnn && cd /tmp/cudnn && \
wget --quiet --show-progress --progress=bar:force:noscroll ${CUDNN_URL} && \
dpkg -i *.deb && \
cp /var/cudnn-local-tegra-repo-*/cudnn-local-tegra-*-keyring.gpg /usr/share/keyrings/ && \
apt-get update && \
apt-cache search cudnn && \
apt-get install -y --no-install-recommends ${CUDNN_PACKAGES} && \
rm -rf /var/lib/apt/lists/* && \
apt-get clean && \
dpkg --list | grep cudnn && \
dpkg -P ${CUDNN_DEB} && \
rm -rf /tmp/cudnn
RUN cd /usr/src/cudnn_samples_v*/conv_sample/ && \
make -j$(nproc)