Skip to content

Commit b7f5def

Browse files
committed
fix: Switch to conda-forge channel
1 parent f8ddae0 commit b7f5def

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

python/conda/Dockerfile.conda

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ ARG PYTHON_VERSION
2121
RUN wget --quiet "https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh" -O /tmp/miniconda.sh && \
2222
/bin/bash /tmp/miniconda.sh -b -p /opt/conda && \
2323
rm /tmp/miniconda.sh && \
24+
# Use community packages from conda-forge instead of Anaconda Inc. default channels
25+
# which require accepting terms of service & using commercial license for orgs with more than 200 employees
26+
/opt/conda/bin/conda config --add channels conda-forge && \
27+
/opt/conda/bin/conda config --remove channels defaults && \
2428
# Install the correct version of python (as the time of writing, anaconda
2529
# installed python 3.11 by default) for parity with our base image
2630
/opt/conda/bin/conda install python=${PYTHON_VERSION} && \

0 commit comments

Comments
 (0)