Skip to content

Commit b48acb8

Browse files
committed
Don't instal python again for conda
1 parent 89dfb6e commit b48acb8

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

python/conda/Dockerfile.conda

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,10 @@ ARG PYTHON_VERSION
2121
RUN MINICONDA_URL="https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh"; \
2222
wget --quiet $MINICONDA_URL -O /tmp/miniconda.sh && \
2323
/bin/bash /tmp/miniconda.sh -b -p /opt/conda && \
24-
rm /tmp/miniconda.sh && \
25-
# Install the correct version of python (as the time of
26-
# writing, anaconda installed python 3.9 by default)
27-
/opt/conda/bin/conda install python=${PYTHON_VERSION} && \
28-
/opt/conda/bin/conda clean --all
24+
rm /tmp/miniconda.sh
2925

3026
ENV PATH=/opt/conda/bin:$PATH
3127

32-
ENV PIP_TARGET=/opt/conda/lib/python${PYTHON_VERSION}/site-packages
3328

3429
# Remove the system wide .profile file, because it overwrites the $PATH variable
3530
# and therefore the /opt/conda/bin directory is not in the $PATH.

0 commit comments

Comments
 (0)