Skip to content

Commit

Permalink
Update Miniconda in pkg-build container to py39_23.1.0-1 + enable lib…
Browse files Browse the repository at this point in the history
…mamba solver (#350)

* Update Miniconda in pkg-build container to py39_23.1.0-1

* Enable libmamba solver for builds
  • Loading branch information
dbast authored Mar 24, 2023
1 parent a0103ea commit 659e137
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions anaconda-pkg-build/linux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8

ARG MC_VER=py39_4.12.0
ARG MC_VER=py39_23.1.0-1

RUN curl -sSL -o /tmp/miniconda.sh \
"https://repo.anaconda.com/miniconda/Miniconda3-${MC_VER}-Linux-$(uname -m)".sh \
Expand All @@ -100,7 +100,7 @@ RUN curl -sSL -o /tmp/miniconda.sh \
RUN MC_ARCH="$(uname -m)" \
&& if [ "${MC_ARCH}" = "x86_64" ]; then subdir="64"; else subdir="${MC_ARCH}"; fi \
&& /opt/conda/bin/conda update --all --quiet --yes \
&& /opt/conda/bin/conda install --quiet --yes conda-build \
&& /opt/conda/bin/conda install --quiet --yes conda-build conda-libmamba-solver \
&& /opt/conda/bin/conda clean --all --yes \
# Cache our C and C++ compilers so we don't have to download them with
# each build; skipping the Fortran compiler as it's not used often
Expand All @@ -118,6 +118,7 @@ RUN MC_ARCH="$(uname -m)" \
# hadolint ignore=DL3059
RUN rm -fv /opt/conda/.condarc \
&& /opt/conda/bin/conda config --system --set show_channel_urls True \
&& /opt/conda/bin/conda config --system --set solver libmamba \
&& /opt/conda/bin/conda config --system --set add_pip_as_python_dependency False \
&& /opt/conda/bin/conda config --show-sources

Expand Down

0 comments on commit 659e137

Please sign in to comment.