@@ -12,22 +12,20 @@ RUN apt-get update && apt-get install -y \
1212
1313# Download and prepare conda
1414RUN wget -q -P /tmp \
15- https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
16- && mkdir /installations && bash /tmp/Miniconda3-latest-Linux-x86_64.sh -b -p /installations/miniconda3 \
17- && rm /tmp/Miniconda3-latest-Linux-x86_64.sh \
18- && echo "export PATH=" /installations/miniconda3/bin:$PATH"" >> ~/.bashrc \
19- && /bin/bash -c "source ~/.bashrc"
15+ https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
16+ mkdir /installations && \
17+ bash /tmp/Miniconda3-latest-Linux-x86_64.sh -b -p /installations/miniconda3 && \
18+ rm /tmp/Miniconda3-latest-Linux-x86_64.sh && \
19+ echo "export PATH=/installations/miniconda3/bin:$PATH" >> ~/.bashrc
20+
2021ENV PATH /installations/miniconda3/bin:$PATH
22+
2123RUN conda init bash && \
2224 conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/main && \
2325 conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/r && \
24- conda update --all -y
25-
26- # Create the environment
27- RUN . /installations/miniconda3/etc/profile.d/conda.sh
28- RUN conda update -qy conda \
29- && conda create -n BiaPy_env python=3.10 \
30- && conda init bash
26+ conda update -y -n base -c defaults conda && \
27+ conda create -n BiaPy_env python=3.10 && \
28+ conda init bash
3129
3230# Set up shell to use the created env
3331SHELL ["conda" , "run" , "-n" , "BiaPy_env" , "/bin/bash" , "-c" ]
0 commit comments