File tree Expand file tree Collapse file tree 1 file changed +3
-15
lines changed
Expand file tree Collapse file tree 1 file changed +3
-15
lines changed Original file line number Diff line number Diff line change 22ARG PYTHON_VERSION=3.8
33FROM python:$PYTHON_VERSION-slim AS base
44
5- ARG CUDA_VERSION=11.8
6- ARG CUDNN_VERSION=8.9.4.25
7- ARG TENSORRT_VERSION=8.6.1.6
8-
95# Install wget.
106RUN apt-get update && \
117 apt-get install --yes wget && \
@@ -19,14 +15,6 @@ RUN CONDA_ARCH=$([ "$TARGETARCH" = "arm64" ] && echo "aarch64" || echo "x86_64")
1915ENV PATH=/opt/conda/bin:$PATH
2016
2117# Install CUDA.
22- RUN conda install --channel nvidia --yes cuda-runtime="$CUDA_VERSION"
23-
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 && \
26- dpkg -i cuda-keyring_1.1-1_all.deb && \
27- rm cuda-keyring_1.1-1_all.deb && \
28- apt-get update && \
29- apt-get install --yes \
30- libcudnn8=$CUDNN_VERSION-1+cuda$CUDA_VERSION && \
31- apt-get clean && \
32- rm -rf /var/lib/apt/lists/*
18+ ARG CUDA_VERSION=11.8
19+ ARG CUDNN_VERSION=8.8
20+ RUN conda install --channel conda-forge --yes cudatoolkit="$CUDA_VERSION" cudnn="$CUDNN_VERSION"
You can’t perform that action at this time.
0 commit comments