forked from dusty-nv/jetson-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
45 lines (38 loc) · 1.26 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
#---
# name: tritonserver
# group: ml
# config: config.py
# requires: '>=32.6'
# depends: [cuda, cudnn, tensorrt, python]
# test: test.py
# notes: https://docs.nvidia.com/deeplearning/triton-inference-server/user-guide/docs/user_guide/jetson.html
#---
ARG BASE_IMAGE
FROM ${BASE_IMAGE}
ARG TRITON_URL
ARG TRITON_TAR
ARG TRITON_VERSION
ARG TRITON_CLIENTS
RUN cd /opt && \
wget --quiet --show-progress --progress=bar:force:noscroll --no-check-certificate ${TRITON_URL} -O ${TRITON_TAR} && \
tar -xzvf ${TRITON_TAR} && \
rm ${TRITON_TAR}
RUN pip3 install --upgrade --no-cache-dir --verbose /opt/${TRITON_CLIENTS}/python/tritonclient-${TRITON_VERSION}-py3-none-manylinux2014_aarch64.whl[all]
RUN apt-get update && \
apt-get install -y --no-install-recommends \
libb64-0d \
libre2-* \
libssl-dev \
rapidjson-dev \
libopenblas-dev \
libarchive-dev \
zlib1g \
curl \
jq \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get clean
RUN pip3 install --upgrade --no-cache-dir --verbose wheel setuptools && \
pip3 install --upgrade --no-cache-dir --verbose grpcio-tools numpy attrdict pillow
ENV PATH="$PATH:/opt/tritonserver/bin"
ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/lib/llvm-8/lib:/opt/tritonserver/lib"
RUN python3 -c 'import tritonclient'