Skip to content

Commit

Permalink
only init conda if not RSTUDIO terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
eeholmes authored Feb 19, 2025
1 parent da7dcb5 commit fa00860
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion base-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ RUN echo "Creating ${NB_USER} user..." \
# Note this is only read by shell, but not by the jupyter notebook - that relies
# on us starting the correct `python` process, which we do by adding the notebook conda environment's
# bin to PATH earlier ($NB_PYTHON_PREFIX/bin)
RUN echo ". ${CONDA_DIR}/etc/profile.d/conda.sh ; conda activate ${CONDA_ENV}" > /etc/profile.d/init_conda.sh
RUN echo 'if [[ ! -v RSTUDIO || ! -v R_HOME ]]; then \
. ${CONDA_DIR}/etc/profile.d/conda.sh; \
conda activate ${CONDA_ENV}; \
fi' > /etc/profile.d/init_conda.sh

# Install basic apt packages
RUN echo "Installing Apt-get packages..." \
Expand Down

0 comments on commit fa00860

Please sign in to comment.