Skip to content

Commit 06c9ea4

Browse files
authored
feat: isolate the CUDA install
1 parent a64ff61 commit 06c9ea4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ RUN CONDA_ARCH=$([ "$TARGETARCH" = "arm64" ] && echo "aarch64" || echo "x86_64")
1414
/bin/bash ~/miniconda.sh -b -p /opt/conda && \
1515
rm ~/miniconda.sh
1616
ENV PATH=/opt/conda/bin:$PATH
17-
# ENV LD_LIBRARY_PATH=/opt/conda/lib:$LD_LIBRARY_PATH
1817

1918
# Install CUDA and cuDNN.
2019
ARG CUDA_VERSION=11.8
2120
ARG CUDNN_VERSION=8.8
2221
RUN conda install --name base --yes conda-libmamba-solver && \
2322
conda config --set solver libmamba && \
24-
conda install --name base --channel conda-forge --yes cudatoolkit="$CUDA_VERSION" cudnn="$CUDNN_VERSION" && \
23+
conda create --name cuda --no-default-packages --channel conda-forge --yes cudatoolkit="$CUDA_VERSION" cudnn="$CUDNN_VERSION" && \
2524
conda clean --all --force-pkgs-dirs --yes
25+
ENV LD_LIBRARY_PATH=/opt/conda/envs/cuda/lib:$LD_LIBRARY_PATH

0 commit comments

Comments
 (0)