Skip to content

Commit b6aff41

Browse files
authored
fix: Remove TensorRT installation and switch to debian11 pacakge source
1 parent 2dd101f commit b6aff41

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

Dockerfile

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,12 @@ ENV PATH=/opt/conda/bin:$PATH
2121
# Install CUDA.
2222
RUN conda install --channel nvidia --yes cuda-runtime="$CUDA_VERSION"
2323

24-
# Cuda version compatible with tensorRT version
25-
RUN if [ "$CUDA_VERSION" = "12.2" ]; then \
26-
export CUDA_TENSORRT_VERSION=12.0; \
27-
else \
28-
export CUDA_TENSORRT_VERSION=$CUDA_VERSION; \
29-
fi \
30-
&& \
31-
# Now use $CUDA_TENSORRT_VERSION in the same RUN command
32-
wget --quiet https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-keyring_1.1-1_all.deb && \
24+
# Install CuDNN
25+
RUN wget --quiet https://developer.download.nvidia.com/compute/cuda/repos/debian11/x86_64/cuda-keyring_1.1-1_all.deb && \
3326
dpkg -i cuda-keyring_1.1-1_all.deb && \
3427
rm cuda-keyring_1.1-1_all.deb && \
3528
apt-get update && \
3629
apt-get install --yes \
3730
libcudnn8=$CUDNN_VERSION-1+cuda$CUDA_VERSION \
38-
libnvinfer-lean8=$TENSORRT_VERSION-1+cuda$CUDA_TENSORRT_VERSION && \
3931
apt-get clean && \
4032
rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)