@@ -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/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub && \
28+ apt-get update && apt-get install -y --no-install-recommends \
2829 automake \
2930 build-essential \
3031 ca-certificates \
@@ -59,26 +60,25 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
5960 zip \
6061 zlib1g-dev \
6162 python3-distutils \
62- python-distutils-extra \
63- && \
64- apt-get clean && \
65- rm -rf /var/lib/apt/lists/* && \
63+ python-distutils-extra && \
6664 find /usr/local/cuda-11.2/lib64/ -type f -name 'lib*_static.a' -not -name 'libcudart_static.a' -delete && \
6765 rm /usr/lib/x86_64-linux-gnu/libcudnn_static_v8.a
6866
6967# 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 \
72- libnvinfer-dev=${TF_TENSORRT_VERSION}-1+cuda11.1 \
73- libnvinfer-plugin-dev=${TF_TENSORRT_VERSION}-1+cuda11.1 \
74- libnvinfer-plugin7=${TF_TENSORRT_VERSION}-1+cuda11.1 \
75- # TODO: need to verify
76- libnvonnxparsers7=${TF_TENSORRT_VERSION}-1+cuda11.1 \
77- libnvparsers7=${TF_TENSORRT_VERSION}-1+cuda11.1\
78- libnvonnxparsers-dev=${TF_TENSORRT_VERSION}-1+cuda11.1 \
79- libnvparsers-dev=${TF_TENSORRT_VERSION}-1+cuda11.1 \
80- && apt-get clean \
81- && rm -rf /var/lib/apt/lists/*;
68+ RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub && \
69+ echo "deb https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64 /" > /etc/apt/sources.list.d/tensorRT.list && \
70+ apt-get update && \
71+ apt-get install -y --no-install-recommends libnvinfer7=${TF_TENSORRT_VERSION}-1+cuda11.0 \
72+ libnvinfer-dev=${TF_TENSORRT_VERSION}-1+cuda11.0 \
73+ libnvinfer-plugin-dev=${TF_TENSORRT_VERSION}-1+cuda11.0 \
74+ libnvinfer-plugin7=${TF_TENSORRT_VERSION}-1+cuda11.0 \
75+ # TODO: need to verify
76+ libnvonnxparsers7=${TF_TENSORRT_VERSION}-1+cuda11.0 \
77+ libnvparsers7=${TF_TENSORRT_VERSION}-1+cuda11.0\
78+ libnvonnxparsers-dev=${TF_TENSORRT_VERSION}-1+cuda11.0 \
79+ libnvparsers-dev=${TF_TENSORRT_VERSION}-1+cuda11.0 && \
80+ apt-get clean && \
81+ rm -rf /var/lib/apt/lists/*;
8282
8383# Install python 3.7.
8484RUN add-apt-repository ppa:deadsnakes/ppa && \
0 commit comments