Skip to content

Commit 2d33ca8

Browse files
committed
Pin Conda to a Python 3.8 compatible version
1 parent dc62a06 commit 2d33ca8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

python/conda/Dockerfile.conda

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@ ENV CONDA_ALWAYS_YES=true
1717
# but that would require baking in the URLs for
1818
# different Miniconda installer versions into the Dockerfile.
1919
ARG PYTHON_VERSION
20-
RUN MINICONDA_URL="https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh"; \
20+
RUN if [ "$PYTHON_VERSION" = "3.8" ]; then \
21+
# last version of conda compatible with python 3.8
22+
MINICONDA_URL="https://repo.anaconda.com/miniconda/Miniconda3-py38_23.11.0-2-Linux-x86_64.sh"; \
23+
else \
24+
MINICONDA_URL="https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh"; \
25+
fi && \
2126
wget --quiet $MINICONDA_URL -O /tmp/miniconda.sh && \
2227
/bin/bash /tmp/miniconda.sh -b -p /opt/conda && \
2328
rm /tmp/miniconda.sh && \

0 commit comments

Comments
 (0)