@@ -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/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub && \
28
+ apt-get update && apt-get install -y --no-install-recommends \
28
29
automake \
29
30
build-essential \
30
31
ca-certificates \
@@ -59,26 +60,25 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
59
60
zip \
60
61
zlib1g-dev \
61
62
python3-distutils \
62
- python-distutils-extra \
63
- && \
64
- apt-get clean && \
65
- rm -rf /var/lib/apt/lists/* && \
63
+ python-distutils-extra && \
66
64
find /usr/local/cuda-11.2/lib64/ -type f -name 'lib*_static.a' -not -name 'libcudart_static.a' -delete && \
67
65
rm /usr/lib/x86_64-linux-gnu/libcudnn_static_v8.a
68
66
69
67
# 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/*;
82
82
83
83
# Install python 3.7.
84
84
RUN add-apt-repository ppa:deadsnakes/ppa && \
0 commit comments