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
2424ENV TF_TENSORRT_VERSION=7.2.2
2525ENV CUDA=11.2
2626
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 \
2829 automake \
2930 build-essential \
3031 ca-certificates \
@@ -67,8 +68,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
6768 rm /usr/lib/x86_64-linux-gnu/libcudnn_static_v8.a
6869
6970# 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 \
7275 libnvinfer-dev=${TF_TENSORRT_VERSION}-1+cuda11.1 \
7376 libnvinfer-plugin-dev=${TF_TENSORRT_VERSION}-1+cuda11.1 \
7477 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
3030ENV CUDA=11.2
3131ENV LD_LIBRARY_PATH /usr/local/cuda/extras/CUPTI/lib64:$LD_LIBRARY_PATH
3232
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 \
3435 ca-certificates \
3536 cuda-command-line-tools-11-2 \
3637 libcublas-11-2 \
@@ -45,8 +46,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
4546 apt-get clean && \
4647 rm -rf /var/lib/apt/lists/*
4748
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 && \
5053 apt-get install -y --no-install-recommends libnvinfer7=${TF_TENSORRT_VERSION}-1+cuda11.1 \
5154 libnvinfer-plugin7=${TF_TENSORRT_VERSION}-1+cuda11.1 \
5255 && apt-get clean \
You can’t perform that action at this time.
0 commit comments