diff --git a/images/conda_init.sh b/images/conda_init.sh index 7976bf2..a4af87c 100755 --- a/images/conda_init.sh +++ b/images/conda_init.sh @@ -1,4 +1,5 @@ #!/bin/bash conda init &> /dev/null +bash diff --git a/images/nasa-openscapes.Dockerfile b/images/nasa-openscapes.Dockerfile index 4427546..82fcc31 100644 --- a/images/nasa-openscapes.Dockerfile +++ b/images/nasa-openscapes.Dockerfile @@ -43,9 +43,6 @@ RUN wget https://github.com/NASA-Openscapes/corn/raw/main/ci/environment.yml && # some teaching preferences RUN git config --global pull.rebase false -COPY conda_init.sh /etc/profile.d/conda_init.sh -RUN bash -c "conda init" - # NOTES: # conda (base) just means $CONDA_ENV/bin/ # conda (openscapes) means $MY_ENV, identically, $CONDA_ENV/envs/openscapes/bin/ @@ -57,3 +54,8 @@ RUN ${MY_ENV}/bin/python -m pip install ipykernel && \ ENV PATH=${MY_ENV}/bin:${PATH} +COPY conda_init.sh /etc/profile.d/conda_init.sh +RUN bash -c /etc/profile.d/conda_init.sh + + +