File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed
tensorflow_serving/tools/docker Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,8 @@ ENV CUDNN_VERSION=8.1.0.77
24
24
ENV TF_TENSORRT_VERSION=7.2.2
25
25
ENV CUDA=11.2
26
26
27
- RUN apt-get update && apt-get install -y --no-install-recommends \
27
+ RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub && \
28
+ apt-get update && apt-get install -y --no-install-recommends \
28
29
automake \
29
30
build-essential \
30
31
ca-certificates \
@@ -67,8 +68,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
67
68
rm /usr/lib/x86_64-linux-gnu/libcudnn_static_v8.a
68
69
69
70
# NOTE: libnvinfer uses cuda11.1 versions
70
- RUN apt-get update && \
71
- apt-get install -y --no-install-recommends libnvinfer7=${TF_TENSORRT_VERSION}-1+cuda11.1 \
71
+ RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub && \
72
+ echo "deb https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64 /" > /etc/apt/sources.list.d/tensorRT.list && \
73
+ apt-get update && \
74
+ apt-get install -y --no-install-recommends libnvinfer7=${TF_TENSORRT_VERSION}-1+cuda11.1 \
72
75
libnvinfer-dev=${TF_TENSORRT_VERSION}-1+cuda11.1 \
73
76
libnvinfer-plugin-dev=${TF_TENSORRT_VERSION}-1+cuda11.1 \
74
77
libnvinfer-plugin7=${TF_TENSORRT_VERSION}-1+cuda11.1 \
Original file line number Diff line number Diff line change @@ -30,7 +30,8 @@ ENV TF_TENSORRT_VERSION=7.2.2
30
30
ENV CUDA=11.2
31
31
ENV LD_LIBRARY_PATH /usr/local/cuda/extras/CUPTI/lib64:$LD_LIBRARY_PATH
32
32
33
- RUN apt-get update && apt-get install -y --no-install-recommends \
33
+ RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub && \
34
+ apt-get update && apt-get install -y --no-install-recommends \
34
35
ca-certificates \
35
36
cuda-command-line-tools-11-2 \
36
37
libcublas-11-2 \
@@ -45,8 +46,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
45
46
apt-get clean && \
46
47
rm -rf /var/lib/apt/lists/*
47
48
48
- # We don't install libnvinfer-dev since we don't need to build against TensorRT
49
- RUN apt-get update && \
49
+ # We don't install libnvinfer-dev since we don't need to build against
50
+ RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub && \
51
+ echo "deb https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64 /" > /etc/apt/sources.list.d/tensorRT.list && \
52
+ apt-get update && \
50
53
apt-get install -y --no-install-recommends libnvinfer7=${TF_TENSORRT_VERSION}-1+cuda11.1 \
51
54
libnvinfer-plugin7=${TF_TENSORRT_VERSION}-1+cuda11.1 \
52
55
&& apt-get clean \
You can’t perform that action at this time.
0 commit comments