Skip to content

Commit d0d95b3

Browse files
authored
Merge pull request #2834 to update Docker image to use miniforge as the base.
Dockerfile: use miniforge instead of miniconda to avoid `defaults`. The new docker image starts from the conda-forge/miniforge image, and adds stuff from there.
2 parents 8863298 + bcb8653 commit d0d95b3

1 file changed

Lines changed: 4 additions & 10 deletions

File tree

Dockerfile

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Parent Image
2-
FROM ubuntu:latest
2+
FROM condaforge/miniforge3:latest
33

44
# Install Bash shell
55
RUN ln -snf /bin/bash /bin/sh
@@ -33,12 +33,6 @@ RUN wget -qO- https://install.julialang.org | sh -s -- --yes --default-channel 1
3333
rm -rf /root/.juliaup/downloads /root/.juliaup/tmp
3434
ENV PATH="/root/.juliaup/bin:$PATH"
3535

36-
# Install conda
37-
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
38-
bash Miniconda3-latest-Linux-x86_64.sh -b -p /miniconda && \
39-
rm Miniconda3-latest-Linux-x86_64.sh
40-
ENV PATH="/miniconda/bin:$PATH"
41-
4236
# Set Bash as the default shell for following commands
4337
SHELL ["/bin/bash", "-c"]
4438

@@ -94,7 +88,7 @@ RUN python rmg.py examples/rmg/rms_constant_V/input.py
9488
RUN rm -rf examples/rmg/rms_constant_V/* && \
9589
git checkout -- examples/rmg/rms_constant_V/
9690

97-
# when running this image, open an interactive bash terminal inside the conda environment
98-
RUN conda init
99-
RUN echo "conda activate rmg_env" >> ~/.bashrc
91+
# when running this image, open an interactive bash terminal inside the rmg_env conda environment
92+
RUN sed -i 's/conda activate base/conda activate rmg_env/' ~/.bashrc
10093
ENTRYPOINT ["/bin/bash", "--login"]
94+

0 commit comments

Comments
 (0)