Skip to content

Commit 7c67c2d

Browse files
JacksonBurnsjonwzheng
authored andcommitted
improve rmg_env activation
1 parent 67521de commit 7c67c2d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@ RUN python rmg.py examples/rmg/rms_constant_V/input.py
8888
RUN rm -rf examples/rmg/rms_constant_V/* && \
8989
git checkout -- examples/rmg/rms_constant_V/
9090

91-
# when running this image, open an interactive bash terminal inside the conda environment
92-
RUN conda init
93-
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 '/\. \/opt\/conda\/etc\/profile.d\/conda.sh && conda activate base/c\. /opt/conda/etc/profile.d/conda.sh && conda activate rmg_env' ~/.bashrc
9493
ENTRYPOINT ["/bin/bash", "--login"]
9594

0 commit comments

Comments
 (0)