File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 1
1
# syntax=docker/dockerfile:1
2
2
ARG PYTHON_VERSION=3.8
3
3
ARG CUDA_VERSION=11.8
4
+ ARG CUDNN_VERSION=8.9.4.25
5
+ ARG TENSORRT_VERSION=8.6.1.6
4
6
FROM python:$PYTHON_VERSION-slim AS base
5
7
6
8
# Install wget.
@@ -17,4 +19,15 @@ ENV PATH=/opt/conda/bin:$PATH
17
19
18
20
# Install CUDA.
19
21
RUN conda install --channel nvidia --yes cuda-runtime="$CUDA_VERSION"
20
- RUN conda install -c conda-forge cudnn
22
+
23
+ # Install cuDNN and TensorRT.
24
+ RUN wget --quiet https://developer.download.nvidia.com/compute/cuda/repos/debian11/x86_64/cuda-keyring_1.1-1_all.deb && \
25
+ dpkg -i cuda-keyring_1.1-1_all.deb && \
26
+ rm cuda-keyring_1.1-1_all.deb && \
27
+ apt-get update && \
28
+ apt-get install --yes \
29
+ libcudnn8=$CUDNN_VERSION-1+cuda$CUDA_VERSION \
30
+ libnvinfer-lean8=$TENSORRT_VERSION-1+cuda$CUDA_VERSION && \
31
+ apt-get clean && \
32
+ rm -rf /var/lib/apt/lists/*
33
+
You can’t perform that action at this time.
0 commit comments