Skip to content

Commit 3b63dc8

Browse files
committed
Minicondaのインストール方法を修正し、バージョン指定を追加
1 parent b5a9c23 commit 3b63dc8

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

ai-experiments/cuda-miniconda-pytorch/Dockerfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,13 @@ RUN apt-get update && apt-get install -y \
1919
&& rm -rf /var/lib/apt/lists/*
2020

2121
# Miniconda
22-
RUN wget -O /tmp/miniconda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
23-
&& bash /tmp/miniconda.sh -b -p /opt/conda \
24-
&& rm /tmp/miniconda.sh
22+
ENV CONDA_DIR=/opt/conda
23+
RUN MINICONDA_VERSION=py39_24.3.0-0 \
24+
wget -O /tmp/miniconda.tar.gz \
25+
https://repo.anaconda.com/miniconda/Miniconda3-${MINICONDA_VERSION}-Linux-x86_64.tar.gz \
26+
&& mkdir -p ${CONDA_DIR} \
27+
&& tar -xzf /tmp/miniconda.tar.gz -C ${CONDA_DIR} --strip-components=1 \
28+
&& rm /tmp/miniconda.tar.gz
2529
ENV PATH="/opt/conda/bin:${PATH}"
2630

2731
#########################################################################################################

0 commit comments

Comments
 (0)