Skip to content

Commit 29a88f6

Browse files
authored
feat: switch to conda-forge
1 parent 863e411 commit 29a88f6

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

Dockerfile

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
ARG PYTHON_VERSION=3.8
33
FROM 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.
106
RUN apt-get update && \
117
apt-get install --yes wget && \
@@ -19,14 +15,6 @@ RUN CONDA_ARCH=$([ "$TARGETARCH" = "arm64" ] && echo "aarch64" || echo "x86_64")
1915
ENV 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"

0 commit comments

Comments
 (0)