forked from NVIDIA-AI-IOT/deepstream_pose_estimation
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
31 lines (22 loc) · 817 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
ARG BASE_IMAGE=nvcr.io/nvidia/deepstream-l4t:5.1-21.02-samples
FROM ${BASE_IMAGE}
ARG REPOSITORY_NAME=deepstream_pose_estimation
ENV DEBIAN_FRONTEND=noninteractive
ENV LANG C.UTF-8
ENV PATH="/usr/local/cuda/bin:${PATH}"
ENV LD_LIBRARY_PATH="/usr/local/cuda/lib64:${LD_LIBRARY_PATH}"
WORKDIR /tmp
RUN apt-get update && \
apt-get install -y --no-install-recommends \
build-essential \
libgstreamer1.0-dev \
libgstreamer-plugins-base1.0-dev \
libjson-glib-dev \
graphviz && \
rm -rf /var/lib/apt/lists/*
RUN mkdir /${REPOSITORY_NAME}
COPY ./ /${REPOSITORY_NAME}
WORKDIR /${REPOSITORY_NAME}
RUN make
RUN /usr/src/tensorrt/bin/trtexec --onnx=pose_estimation.onnx --saveEngine=pose_estimation.onnx_b1_gpu0_fp16.engine
CMD ./deepstream-pose-estimation-app /dev/video0