File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
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
- FROM python:$PYTHON_VERSION-slim AS base
3
+ FROM python:$PYTHON_VERSION-slim
4
4
5
5
# Install wget.
6
6
RUN apt-get update && \
@@ -11,7 +11,8 @@ RUN apt-get update && \
11
11
# Install Miniconda.
12
12
RUN CONDA_ARCH=$([ "$TARGETARCH" = "arm64" ] && echo "aarch64" || echo "x86_64" ) && \
13
13
wget --quiet "https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-$CONDA_ARCH.sh" --output-document ~/miniconda.sh && \
14
- /bin/bash ~/miniconda.sh -b -p /opt/conda
14
+ /bin/bash ~/miniconda.sh -b -p /opt/conda && \
15
+ rm ~/miniconda.sh
15
16
ENV PATH=/opt/conda/bin:$PATH
16
17
ENV LD_LIBRARY_PATH=/opt/conda/lib:$LD_LIBRARY_PATH
17
18
@@ -20,4 +21,5 @@ ARG CUDA_VERSION=11.8
20
21
ARG CUDNN_VERSION=8.8
21
22
RUN conda install --name base conda-libmamba-solver && \
22
23
conda config --set solver libmamba && \
23
- conda install --channel conda-forge --yes cudatoolkit="$CUDA_VERSION" cudnn="$CUDNN_VERSION"
24
+ conda install --name base --channel conda-forge --yes cudatoolkit="$CUDA_VERSION" cudnn="$CUDNN_VERSION" && \
25
+ conda clean --all --force-pkgs-dirs --yes
You can’t perform that action at this time.
0 commit comments