Skip to content

Commit ca048dd

Browse files
committed
reorder build steps to ensure julia deps are installed in rmg_env
1 parent 4437967 commit ca048dd

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

Dockerfile

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh &
2828
rm Miniconda3-latest-Linux-x86_64.sh
2929
ENV PATH="$PATH:/miniconda/bin"
3030

31-
# Set solver backend to mamba for speed
32-
RUN conda install -n base conda-libmamba-solver && \
33-
conda config --set solver libmamba
34-
3531
# Set Bash as the default shell for following commands
3632
SHELL ["/bin/bash", "-c"]
3733

@@ -44,10 +40,7 @@ RUN git clone --single-branch --branch main --depth 1 https://github.com/Reactio
4440

4541
WORKDIR /rmg/RMG-Py
4642
# build the conda environment
47-
RUN conda env create --file environment.yml && \
48-
conda install -c conda-forge julia=1.9.1 pyjulia>=0.6 && \
49-
conda install -c rmg pyrms diffeqpy && \
50-
conda clean --all --yes
43+
RUN conda env create --file environment.yml
5144

5245
# This runs all subsequent commands inside the rmg_env conda environment
5346
#
@@ -56,6 +49,10 @@ RUN conda env create --file environment.yml && \
5649
# in a Dockerfile build script)
5750
SHELL ["conda", "run", "--no-capture-output", "-n", "rmg_env", "/bin/bash", "-c"]
5851

52+
RUN conda install -c conda-forge julia=1.9.1 pyjulia>=0.6 && \
53+
conda install -c rmg pyrms diffeqpy && \
54+
conda clean --all --yes
55+
5956
# Set environment variables as directed in the RMG installation instructions
6057
ENV RUNNER_CWD=/rmg
6158
ENV PYTHONPATH="$RUNNER_CWD/RMG-Py:$PYTHONPATH"

0 commit comments

Comments
 (0)