Skip to content

Commit

Permalink
[conda] Update Miniconda version for build
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobandersen committed Jun 17, 2024
1 parent c80709a commit 4594ea3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions conda/build.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# we are trying to build against. Otherwise CMake seems to find the system Python
# instead of the Conda Python.
FROM ubuntu:20.04 AS build
ARG MinicondaURL=https://repo.anaconda.com/miniconda/Miniconda3-py38_23.11.0-2-Linux-x86_64.sh
# Based on continuumio/miniconda3

#ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
Expand All @@ -10,10 +11,10 @@ ENV PATH /opt/conda/bin:$PATH
RUN apt-get update --fix-missing \
&& apt-get install -y wget bzip2 ca-certificates curl git

RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-py38_4.12.0-Linux-x86_64.sh -O ~/miniconda.sh && \
RUN wget --quiet $MinicondaURL -O ~/miniconda.sh && \
/bin/bash ~/miniconda.sh -b -p /opt/conda && \
rm ~/miniconda.sh && \
/opt/conda/bin/conda clean -tipsy && \
/opt/conda/bin/conda clean -afy && \
ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \
echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc && \
echo "conda activate base" >> ~/.bashrc
Expand Down Expand Up @@ -54,10 +55,10 @@ ENV PATH /opt/conda/bin:$PATH
RUN apt-get update --fix-missing \
&& apt-get install -y wget bzip2 ca-certificates curl git

RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-4.5.11-Linux-x86_64.sh -O ~/miniconda.sh && \
RUN wget --quiet $MinicondaURL -O ~/miniconda.sh && \
/bin/bash ~/miniconda.sh -b -p /opt/conda && \
rm ~/miniconda.sh && \
/opt/conda/bin/conda clean -tipsy && \
/opt/conda/bin/conda clean -afy && \
ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \
echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc && \
echo "conda activate base" >> ~/.bashrc
Expand Down

0 comments on commit 4594ea3

Please sign in to comment.