forked from dusty-nv/jetson-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
37 lines (30 loc) · 953 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
31
32
33
34
35
36
37
#---
# name: jetson-utils
# group: cuda
# depends: [cuda, tensorrt, python, cmake, gstreamer]
# test: [test.sh]
#---
ARG BASE_IMAGE
FROM ${BASE_IMAGE}
WORKDIR /opt
ARG JETSON_UTILS_REPO=dusty-nv/jetson-utils
ARG JETSON_UTILS_BRANCH=master
RUN apt-get update && \
apt-get install -y --no-install-recommends \
libglew-dev \
glew-utils \
libsoup2.4-dev \
libjson-glib-dev \
libgstrtspserver-1.0-dev \
avahi-utils \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get clean
ADD https://api.github.com/repos/${JETSON_UTILS_REPO}/git/refs/heads/${JETSON_UTILS_BRANCH} /tmp/jetson_utils_version.json
RUN git clone --branch=${JETSON_UTILS_BRANCH} --depth=1 https://github.com/${JETSON_UTILS_REPO}
RUN cd jetson-utils && \
mkdir build && \
cd build && \
cmake ../ && \
make -j$(nproc) && \
make install
RUN LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib/" python3 -c 'import jetson_utils'