-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathDockerfile
56 lines (51 loc) · 1.84 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#ARG BASE_IMAGE=nvcr.io/nvidia/deepstream:5.0-dp-20.04-triton
ARG BASE_IMAGE
FROM ${BASE_IMAGE}
# Install dependencies
RUN apt-get update --fix-missing && apt-get install -y \
ca-certificates \
build-essential \
autoconf libtool \
python3 \
python3-dev \
python3-pip \
python3-setuptools \
python-gi-dev \
libgstreamer1.0-dev \
python3-opencv \
libgstrtspserver-1.0-0 \
gstreamer1.0-rtsp \
libgirepository1.0-dev \
gobject-introspection \
gir1.2-gst-rtsp-server-1.0 \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
#
# This will copy in the Python deepstream bindings.
#
# NOTE: These bindings are not here in this repo because NVIDIA has chosen
# to make these bindings available only when logged-in to an NVIDIA
# developer account.
#
# Use the URL below; create a free NVIDIA developer account if you don't
# already have one; then login, go to this page, agree to general terms
# and python terms, and then at the bottom of the page, click to download
# the python bindings into this directory. (I developed this with v0.9).
# Here's the URL:
# https://developer.nvidia.com/deepstream-getting-started
#
# Place the resulting file in this directory and then you can "make build"
#
COPY deepstream_python_v*.tbz2 /
WORKDIR /
RUN tar -xvf /deepstream_python_v*.tbz2
RUN tar -xvf /deepstream_python_v*/ds_pybind_v0.9.tbz2 -C /opt/nvidia/deepstream/deepstream-5.0/sources
# Copy the python source and config file
COPY deepstream-rtsp.py deepstream-rtsp.cfg /
# Set the WORKDIR and default ENTRYPOINT command
# Unfortunately the base container sets an ENTRYPOINT, not a CMD, so it is a
# very awkward to use this container except as a shell command.
# To do development, uncomment the 2 lines below, and comment the other two.
#WORKDIR /outside
#ENTRYPOINT /bin/bash
WORKDIR /
ENTRYPOINT python3 ./deepstream-rtsp.py