Skip to content

Commit ab1d632

Browse files
committed
fix: use env var instead
1 parent 770abd5 commit ab1d632

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

python/conda/Dockerfile.conda

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ RUN apt-get update && \
1010
apt-get clean && \
1111
rm -rf /var/lib/apt/lists/*
1212

13+
ENV CONDA_PLUGINS_AUTO_ACCEPT_TOS=yes
1314
ENV CONDA_ALWAYS_YES=true
1415

1516
# We always download and install the latest miniconda3,
@@ -21,9 +22,6 @@ ARG PYTHON_VERSION
2122
RUN wget --quiet "https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh" -O /tmp/miniconda.sh && \
2223
/bin/bash /tmp/miniconda.sh -b -p /opt/conda && \
2324
rm /tmp/miniconda.sh && \
24-
# Accept the ToS for the defaults channels:
25-
/opt/conda/bin/conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/main && \
26-
/opt/conda/bin/conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/r &&
2725
# Install the correct version of python (as the time of
2826
# writing, anaconda installed python 3.8 by default)
2927
/opt/conda/bin/conda install python=${PYTHON_VERSION} && \

0 commit comments

Comments
 (0)