This repository has been archived by the owner on Sep 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile.base
47 lines (41 loc) · 1.59 KB
/
Dockerfile.base
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
################################################################################
# Copyright 2021 MONAI Consortium
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
################################################################################
FROM nvcr.io/nvidia/deepstream:6.0-ea-21.06-triton
RUN apt update && \
apt install -y \
python3-gi \
python3-dev \
python3-gst-1.0 \
python3-opencv \
python3-venv \
python3-numpy \
libgstrtspserver-1.0-0 \
libgstreamer-plugins-base1.0-dev \
libcairo2-dev \
gstreamer1.0-rtsp \
gstreamer1.0-tools \
gstreamer1.0-libav \
libgirepository1.0-dev \
gobject-introspection \
gir1.2-gst-rtsp-server-1.0 \
gstreamer1.0-plugins-base \
gstreamer1.0-python3-plugin-loader && \
pip3 install --upgrade opencv-python && \
pip3 install cupy-cuda111==8.6.0
# disable PyTorch backend
RUN mv /opt/tritonserver/backends/pytorch /opt/tritonserver/backends/pytorch_bck
ENV GST_PLUGIN_PATH=/app/plugins/gst
ENV PATH=$PATH:/opt/nvidia/deepstream/deepstream-6.0/lib
WORKDIR /app
ENTRYPOINT tail -f /dev/null
CMD [ "/bin/bash" ]